Похожие чаты

Hallo! In telethon login to telegram account via telegram bot (aiogram)

i'm trying to send a confirmation code to the given phone number and the code is sending like 849729;
and if i wanna check if user types the correct confirmation code im getting the code like "n4osk9n3j..." from telegram server and they're not matching. so how can I match them?

Is there any possible way to check if the user sent the correct code that's been sent by telegram?

5 ответов

3 просмотра

What are you talking about exactly? why would "telegram server" give you "n4osk9n3j"

Azizbek Qodirov- Автор вопроса
⎞ .·. ⎝ ⎝
What are you talking about exactly? why would "tel...

not it's just an example. the confirmation code is coming like that from telethon. and other code (only numbers) is coming from telegram and they're not matching. actually i am asking user's phone and trying to send confirmation code to that number and asking the confirmation code that's been sent then how can i check if user sends the right confirmation code

Azizbek Qodirov
not it's just an example. the confirmation code is...

If a user sends you something wrong, why is it your problem exactly? just regex match or isdigit() that thing for the number one, and show a warning if it's wrong n4osk9n3j looks like the confirmation code you get when logging in with my.telegram.org, not phone code

Azizbek Qodirov- Автор вопроса
⎞ .·. ⎝ ⎝
If a user sends you something wrong, why is it you...

but from telegram app user is getting code with only numbers not like this

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта