Answer the question
In order to leave comments, you need to log in
How to talk to a user through a Telegram bot?
@bot.message_handler(context_types=["text"])
def send(message):
bot.forward_message(595176747,from_user.id, message_id)
Answer the question
In order to leave comments, you need to log in
The user should initiate the conversation: write to the bot first. The incoming message will contain chat.id and user.id parameters - chat and user identifiers.
To send a message in response immediately or later, you need to remember at least chat.id
If you are using some kind of ready-made bot, a link to its github will not hurt.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question