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

Use one structure and naming on all methods #23

Closed 411A closed 10 months ago

411A commented 1 year ago

The method wait_for_click only accepts from_user_id & then it throws NoneType error at some point, I think it's better to use one structure for all of them (using kwargs or identifiers, not identifier). It'd be less confusing that way.

411A commented 1 year ago
usernein commented 10 months ago

I think it's better to use one structure for all of them (using kwargs or identifiers, not identifier)

Done in pyromod v3 using kwargs! You can read the release notes for v3.0.0 here.

usernein commented 10 months ago

@411A

Another problem, when using wait_for_click, the first tap on the button does nothing!!! it stuck on the button's loading effect (despite using cb.answer()) and you should tap twice to activate the button.

If you're still facing this issue on pyromod v3, may you create another issue for it? Thanks!