T
T
Ternick2019-12-19 19:56:02
Python
Ternick, 2019-12-19 19:56:02

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 ....

Is there any such option ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-12-20
@anerev

And there are only 6 types (video, audio, text, photo, sticker, document)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question