Answer the question
In order to leave comments, you need to log in
How to send audio to telegram bot?
Hello. I am making an inline bot that can be called in any chat, pass parameters to it, and it will send a message to the general chat.
So, I just can’t figure out how to send not text, but audio, to mp3.
This is how the piece of code that returns the text looks like now.
@bot.inline_handler(func=lambda query: True)
def query_text(query):
result = None
result = types.InlineQueryResultArticle(
id="1", title=query.query,
input_message_content=types.InputTextMessageContent(query.query))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question