elebur
elebur
One of the tests for MessageGenerator is failing now, but it will be fixed as soon as I add parsers for URLs, mentions, and hashtags.
Yes, I took the algorithm from it and rewrite in python.
@AlexPHorta the PR is ready to be merged.
Hey, @AlexPHorta . The `td` project uses BSL ([Boost Software License](https://github.com/tdlib/td?tab=BSL-1.0-1-ov-file)). According to gnu.org [BSL is compatible with GPL](https://www.gnu.org/licenses/license-list.en.html#boost). So, I think, we won't have any issues with using this...
Hey, Alex! Added the license and applied the linter corrections. But there are some warnings left about the complexity of functions, like this one `` C901 `_handle_attachments` is too complex...
I haven't investigated the source code of the PTB very deeply yet only made a quick look through, but here are my thoughts. - [Application](https://github.com/python-telegram-bot/python-telegram-bot/blob/9ebd48903b5f7910f6dccb52a2903831b9e69e38/telegram/ext/_application.py#L117) is an entry point. It...
At least we have to mock the Bot class. It has a lot of methods but I agree with you that we could start with the most important ones such...
> We could mock the telegram API, something that could be plugged in place of it, and make convenience methods with the rest. @AlexPHorta Wouldn't we eventually end up reinventing...
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...
> I'm afraid of using a method marked as private as our main entry point. Yes, you are right, it is indeed not the best idea. > @elebur FYI telegram...