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

ask function will behave like listen if text is empty #14

Closed Eikosa closed 10 months ago

usernein commented 1 year ago

Hmm why would someone use ask() with empty text and why the check should be made on pyromod and not on the bot code?

Eikosa commented 1 year ago

Hmm why would someone use ask() with empty text and why the check should be made on pyromod and not on the bot code?

I thought it would be nice if we don't write anything inside the function, like the input() function in python itself, that it just takes input

Eikosa commented 1 year ago

Also, maybe if something like this is added, the listen function may not be needed

usernein commented 1 year ago

Hmm why would someone use ask() with empty text and why the check should be made on pyromod and not on the bot code?

I thought it would be nice if we don't write anything inside the function, like the input() function in python itself, that it just takes input

That makes sense

usernein commented 10 months ago

Thanks for your contribution! It's going to be added in pyromod v3 release (coming soon)