pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

Bot is not receiving audio messages

Open ticoti opened this issue 9 years ago • 4 comments

Please answer these questions before submitting your issue. Thanks!

  1. What version of pyTelegramBotAPI are you using? version='2.3.2'
  2. What OS are you using? ubuntu
  3. 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

ticoti avatar May 24 '17 19:05 ticoti

I Have this problem so with python 3.7 Please Help me!

amirmaaref avatar May 24 '19 11:05 amirmaaref

@bot.message_handler(func=lambda msg: msg.voice.mime_type == 'audio/ogg',content_types=['voice'])

just found receiving audio message by using this handler.

meoww-bot avatar Jan 29 '20 16:01 meoww-bot

"voice" and "audio" are different message types. Voice messages are "voice", music files are "audio" (may be).

Badiboy avatar Jan 29 '20 18:01 Badiboy

"voice" and "audio" are different message types. Voice messages are "voice", music files are "audio" (may be).

oh, sorry, I misunderstand.

meoww-bot avatar Jan 30 '20 03:01 meoww-bot