R
R
Rotyin2021-12-23 19:56:00
Python
Rotyin, 2021-12-23 19:56:00

How to end a function?

async def say(akk,audio,chat):
    async with telethon.TelegramClient(akk,api_id,api_hash) as client:

        @group_call.on_playout_ended
        async def audio_ended(gc, source):
            # Сдесь нужно завершыть функцыю say
                
        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 question

Ask a Question

731 491 924 answers to any question