Answer the question
In order to leave comments, you need to log in
How to stop execution of pyrogram.idle function?
how to stop the execution of the function:
pyrogram.idle()
Control+C helps, but how else to stop it in the code?
async with Client(akk,api_id,api_hash) as client:
group_call = pytgcalls.GroupCallFactory(client, CLIENT_TYPE).get_file_group_call(audio, "",play_on_repeat=False)
await group_call.start(chat)
@group_call.on_playout_ended
async def audio_ended(gc, source):
print("ctrl+c")
await pyrogram.idle()
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