Alexandre Paloschi Horta
Alexandre Paloschi Horta
I'm trying to simplify the message decorator of Mockbot. None of those decorators are being tested. I believe we have to write a boatload of tests to modify this code...
> I've looked through the code of the [`telegram.Bot`](https://github.com/python-telegram-bot/python-telegram-bot/blob/9ebd48903b5f7910f6dccb52a2903831b9e69e38/telegram/_bot.py#L166-L166) and all methods that interacts with the API do it via the [`_post`](https://github.com/python-telegram-bot/python-telegram-bot/blob/9ebd48903b5f7910f6dccb52a2903831b9e69e38/telegram/_bot.py#L665-L665) method (and then it uses the `_do_post` method)....
> we need to see if it easy to overwrite just these method, in case of mocking the `BaseRequest` class it's easy to replace the original with the mock `app...
Improve what we already have. Throughly testing everything and simplifying things to make sure we can plug other options later. That way we'll have something in a working state soon.
I'm gonna work on the message generator.
https://github.com/ptbtest-dev/ptbtest-echobot Hi, I created this repository for the first example, echobot. My idea is that we come up with use cases and write code trying to solve those cases. I...
> As far as I can see almost all network activity happens in the [Bot](https://github.com/python-telegram-bot/python-telegram-bot/blob/9ebd48903b5f7910f6dccb52a2903831b9e69e38/telegram/_bot.py#L166) class, so we have to rewrite all methods of the `Bot` class. > > Then...