ptbtest icon indicating copy to clipboard operation
ptbtest copied to clipboard

Results 19 ptbtest issues
Sort by recently updated
recently updated
newest added

This PR is updating `ptbtest` to `python-telegram-bot` version 13.12. This version has been chosen as it is relatively new and doesn't require significant changes to make the repository somewhat accessible....

Line 23 of test_inlinekeyboard example is acomment that said => # For use within the tests we **nee** some stuff. Starting with a Mockbot I added the **d** at **need**

Hi. Occasionally the developer team of PTB is being asked about the status of the [ptbtest](https://pypi.org/project/ptbtest/) library, which is intended to help write unit tests for bots built with `python-telegram-bot`....

help wanted

My bot checks message date to be sure it is fresh enough to process. I think, it should be possible to pass datetime object for such cases.

enhancement

Just some quick and naive fixes to make the tests pass.

There were only 2 problems on the lib: * First, the Mockbot must to have a "request" attribute. The value is an object telegram.util.request.Request; * Second, the User constructor from...

Simple fix, create `delete_webhook` method in Mockbot like `set_webhook`.

Fixed an issue related with `new_chat_member` that it's a list `new_chat_members` at 11.1.0.

When I try to create a Upater using the Mockbot like on your examples, I get the following error: "AttributeError: 'Mockbot' object has no attribute 'request' " Running your examples...