LonamiWebs / Telethon

Pure Python 3 MTProto API Telegram client library, for bots too!
https://docs.telethon.dev
MIT License
10.02k stars 1.41k forks source link

Can i cancel send_file method? #4441

Closed MohammadArak closed 2 months ago

MohammadArak commented 2 months ago

Describe your suggested feature

lets say i have called a new send_file method and now i want to cancel uploading process, is there any way to do that?

Checklist

Lonami commented 2 months ago

Hi, this is not an issue with the library but rather a question. The issues section in GitHub is only to report bugs or enhancements in the library itself. If you have usage questions, you should ask those in StackOverflow or the @TelethonChat group.

asyncio-created tasks do have a .cancel() method. But this is something the Python's stdlib provides, and is not specific in any way to Telethon.