Parcourir la source

Fix text label in audio message

Taddeus Kroes il y a 10 ans
Parent
commit
7ca048c4d7
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      bot.py

+ 1 - 2
bot.py

@@ -74,8 +74,7 @@ def oninline(bot, update):
         return
     url = get_audio_url(q)
     results = [
-        InlineQueryResultAudio(id='audio_%s' % q, audio_url=url,
-                               title='Audio (download button, shows text)'),
+        InlineQueryResultAudio(id='audio_%s' % q, audio_url=url, title=q),
         InlineQueryResultVoice(id='voice_%s' % q, voice_url=url,
                                title='Voice (play button, no text)')
     ]