How to send audio files using python-bale-bot? #13
-
|
Hi there! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
|
Hey @okaeiz,
...
@bot.listen(bale.EventType.CALLBACK)
async def on_callback(callback: bale.CallbackQuery):
await callback.message.chat.send_document(document = "Your file id", ...)
|
Beta Was this translation helpful? Give feedback.
Hey @okaeiz,
We haven't specifically written a method for it yet, but if you are coding in the
on_callbackevent, 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)🔷We will write a special method for it soon.In the new version (
v2.4.4)…