浏览代码

Fix text label in audio message

Taddeus Kroes 10 年之前
父节点
当前提交
7ca048c4d7
共有 1 个文件被更改,包括 1 次插入 和 2 次删除
  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)')
     ]