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()