X
X
XWR2021-08-31 16:38:59
Python
XWR, 2021-08-31 16:38:59

How to send voice via file_id in pyrogram?

Guys who knows how to send voice to pyrogram via file_id

In the docks only via voice.ogg it is written
via file_id in any way?

Here is the code:

voise = "AwACAgIAAx0CRTiPSQACAcBhKRnHzplsrIrDBGQhBqGP6sIW7QACKBAAAmU5SEmFTkPcMkU-CSAE"
@app.on_message(filters.command("q", prefixes=".") & filters.me)
def hack(_, msg):
    app.send_voice("me", voise)


He does not want to send using file_id
And sending via voice.ogg is a loss of speed (

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question