Replies: 2 comments 3 replies
-
Hello. What exactly you mean about testing? You can't use this library for unit testing as it works as API-wrapper. It just give you autocompletion and different ways to organize your code. If you want to run bot locally, you should use long polling. In this way you can work with your bot without configuring a webhook and then test how it works directly in messanger. |
Beta Was this translation helpful? Give feedback.
-
Yeah, true, but since this library includes commands, I'd like to be able to make assertions on the output of commands. So say I'd have a $manager = new BotManager(…);
$manager->test('/start')->assertSendMessage(['text' => 'I can do a lot of things']); This way, we can test the outputs using the helpers, so |
Beta Was this translation helpful? Give feedback.
-
Hey there,
I just discovered this package via my GitHub homepage (I didn't know it did that).
It looks great, but I'm seeing no docs on testing from an end-user perspective (which is something a lot of Telegram bot packages don't have).
What would be the best way to test this, I'd be glad to help.
Beta Was this translation helpful? Give feedback.
All reactions