📜  如何使用内联远程机器人发送音频 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:11.385000             🧑  作者: Mango

代码示例1
import telebot
from telebot import types


bot = telebot.TeleBot("YOUR TOKEN")

@bot.inline_handler(lambda query: query.query == 'test')

def query_text(inline_query):

    s = append(types.InlineQueryResultVoice(id = '0',voice_url = 'https://t.me/yourchanell/5.ogg',title = 'Your title'))

    bot.answer_inline_query(inline_query.id, [s])
    
bot.infinity_polling()