-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending no-slash commands / plain text #30
Comments
Found a workaround. Just use Pyrogram's Client() functions to send a message. async with controller.collect(count=1) as response:
await client.send_message(bot_id, text='Test text') But it's kinda counterintuitive. Just saying. |
On an unrelated note, it'd be cool to have a method that looks for the inline button and returns the button's index. Thus I won't have to change all the tests that refer to a specific button by index. |
@DLumi This makes me rethink whether the |
@DLumi Not sure about the button by index suggestion, what's the use case? How is the index important? :) |
Well, just as I told you: you can search buttons by name and get their index to call them later. Cause if the button is called directly by index, then if you, say, put another button just before the one you test (and this happens) - then the whole test would be failed because of that. Other than that, this library is the bomb. It really helps with a lot of testing that I previously had to do manually. Thanks! |
It seems strange to me that adding slash is not an optional parameter. My bot, for example, requires some text responses from the user, and I'd like to mock them, but right now, there's no way I can do it with built-in means.
Anyway, is there a workaround for now?
The text was updated successfully, but these errors were encountered: