Answer the question
In order to leave comments, you need to log in
How to send a message to a user number in Telergam?
Hello everybody.
In Google - continuous instructions for writing bots, but as I understood from reading - the bot cannot send a message to the user to the phone number.
The tele API has methods auth.sendSms and auth.sendCode (sms_type=5 suits me), but I could not find usage examples anywhere, and I myself am not strong in using the API.
The task is generally simple, he wants to make a private bot with registration. The user writes a phone number to the bot, the bot code checks this number against the list, if the number is on the list, send him the generated code to the number in the telegram, which he would again send to the bot and he would authorize it. Actually, I had a hitch at the time of sending this message to the user. Help me please.
Answer the question
In order to leave comments, you need to log in
there are methods auth.sendSms and auth.sendCode
There are no methods to send SMS in telegram bot api. Don't confuse client api and botap.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question