Answer the question
In order to leave comments, you need to log in
How to send a message from a bot to multiple users at the same time?
Hi, I'm making a mailing bot, and I can't figure out how to send a message to several users at the same time! I have id of all users! I send via
bot.send_message
Answer the question
In order to leave comments, you need to log in
ids = open('ids.txt', 'r')
for id in ids:
bot.send_message(chat_id=id, text="Test text")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question