E
E
Emil Timerbaev2020-11-29 18:54:52
Python
Emil Timerbaev, 2020-11-29 18:54:52

How to find out the type of message?

How to find out what type of message (photo, sticker or text)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SashaN69, 2020-11-29
@MrDlop

Make a handler for each type of messages, and further actions with them.

@dp.message_handler(content_types=['audio, photo и тд']

B
BasiC2k, 2020-11-29
@BasiC2k

See the TG API documentation. Everything is clearly written there. The answer to your question is definitely there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question