microg / microg/GmsCore

[org.telegram.messenger] retrieve OTP code via sms option not available in telegram

Open
#2,033 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
14.6k
Forks
3.2k
Avg merge
12d 11h
Merged PRs (30d)
4

Description

Affected app
Name: Telegram
Package id: org.telegram.messenger

Describe the bug
Telegram is a Instant Messaging Platform.
The only way to to register and login Telegram is to using a phone number to retrieve OTP code.
If you already have a Telegram account and Access to logined devices, Telegram will send OTP code to logined devices, but you can choose to get OTP code via sms too.
But since Telegram added firebase authentication check before user request a OTP code,users won't be able to retrieve OTP code via sms if they don't have gms on their android devices.
They could only check OTP code on other already logined device

I have tried Telegram with microG, "Tap to get a code via SMS" not available when using microG.

To Reproduce
Steps to reproduce the behavior:

  1. Launch Telegram app
  2. Go to Login Page
  3. Type phone number and press login
  4. "Tap to get a code via SMS" not available

Expected behavior
"Tap to get a code via SMS" option available

Screenshots

System
Android Version: [10]
Custom ROM: [microG AVD image]

microG
microG Core version: 0.2.28.231657
microG Self-Check results: All ticked

Additional context
Telegram Add firebase authentication:
https://t.me/tginfoen/1598

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by reproducing Telegram login on the listed Android and microG versions and tracing the Firebase authentication check; done means the SMS OTP option is available without GMS while preserving the login flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase, java
Domain
authentication, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.