Answer the question
In order to leave comments, you need to log in
How to get the id of the channel/chat in which the BOT is located?
Unfortunately, I lost a piece of a small code that, using requests , immediately displayed all the latest SMS in chats to the line where there is a bot, and I found the right id . To send SMS to the desired chat / channel, you must know the id, please help with this.
bot = telegram.Bot(token=BOT_TOKEN)
bot.send_message(chat_id='000000000000', text='199')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question