Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to send audio with inline telebot

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()
 
PREVIOUS NEXT
Tagged: #send #audio #inline #telebot
ADD COMMENT
Topic
Name
4+9 =