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?
What are you talking about exactly? why would "telegram server" give you "n4osk9n3j"
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
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
but from telegram app user is getting code with only numbers not like this
Обсуждают сегодня