E
E
Evgeny Elizarov2017-09-27 12:27:41
Python
Evgeny Elizarov, 2017-09-27 12:27:41

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

2 answer(s)
A
Alexey S., 2017-09-28
@Winsik

there are methods auth.sendSms and auth.sendCode

These methods are used for the initial authorization of the user in the telegram client (as an example, a developer of alternative clients using these methods can register a new user session on this client / device by receiving a secret key from the telegram server for further communication)

A
Andrey Shatokhin, 2017-09-27
@Sovigod

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 question

Ask a Question

731 491 924 answers to any question