Skip to content
Discussion options

You must be logged in to vote

Hey @okaeiz,
We haven't specifically written a method for it yet, but if you are coding in the on_callback event, you can use the callback object and go to the message and then access that chat and send an audio file in the chat with the file sending method. (callback.message.chat)

Note: Due to the disturbances created in "Bale", it is not possible to upload through bots, but you can use the file_id of the sound to give it instead of the document.

...
@bot.listen(bale.EventType.CALLBACK)
async def on_callback(callback: bale.CallbackQuery):
    await callback.message.chat.send_document(document = "Your file id", ...)

🔷We will write a special method for it soon.
In the new version (v2.4.4)…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@okaeiz
Comment options

@kian-ahmadian
Comment options

@okaeiz
Comment options

@kian-ahmadian
Comment options

@okaeiz
Comment options

Answer selected by kian-ahmadian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question ❓ Further information is requested
2 participants