pyTelegramBotAPI
pyTelegramBotAPI copied to clipboard
Bot is not receiving audio messages
Please answer these questions before submitting your issue. Thanks!
- What version of pyTelegramBotAPI are you using? version='2.3.2'
- What OS are you using? ubuntu
- What version of python are you using? python 2.7
Bot is not receiving audio messages, it receives documents, stickers and all types but not audios
I Have this problem so with python 3.7 Please Help me!
@bot.message_handler(func=lambda msg: msg.voice.mime_type == 'audio/ogg',content_types=['voice'])
just found receiving audio message by using this handler.
"voice" and "audio" are different message types. Voice messages are "voice", music files are "audio" (may be).
"voice" and "audio" are different message types. Voice messages are "voice", music files are "audio" (may be).
oh, sorry, I misunderstand.