Ver Fonte

Fix text label in audio message

Taddeus Kroes há 10 anos atrás
pai
commit
7ca048c4d7
1 ficheiros alterados com 1 adições e 2 exclusões
  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)')
     ]