usernein / pyromod

A monkeypatcher add-on for Pyrogram
https://pyromod.pauxis.dev/
GNU Lesser General Public License v3.0
223 stars 70 forks source link

[Feature Request] Pass the `sent_message` to timeout_handler in `ask`. #58

Open Yatall opened 1 month ago

Yatall commented 1 month ago

https://github.com/usernein/pyromod/blob/faf1a6ab5eed481d1afc40a41195b9f30be00376/pyromod/listen/client.py#L94

In the ask method, a new message is sent. If it times out, the config.timeout_handler handles cleanup but doesn’t receive the sent_message as an argument. I think, adding this would be helpful for cleanup natively.