Bläddra i källkod

Fix text label in audio message

Taddeus Kroes 10 år sedan
förälder
incheckning
7ca048c4d7
1 ändrade filer med 1 tillägg och 2 borttagningar
  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)')
     ]