Answer the question
In order to leave comments, you need to log in
How to send messages to all users of the bot?
I would like to make a function that will send the same message to all users of the bot, BUT send not only a test, but also other message formats (video, audio, stickers).
And since there are a lot of types, I would not really like to do something like this:
if message.content_type == "text":
send_message(chat_id, message.text)
elif ....
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