Conversation
Changes: - custom_title for ChatMember - new method setChatAdministratorCustomTitle for Bot - new slow_mode_delay for Chat Update due to new API future `custom_title` from API 4.5 (https://core.telegram.org/bots/api#december-31-2019)
The `custom_title` feature and the `slow_mode_delay` option
Added file_unique_id attrs from API 4.5 and updated tests for it
|
The PR is ready for review now. The test failures seem unrelated ( |
There was a problem hiding this comment.
Reviewers, what do you think:
- Should we add a shortcut for
bot.set_chat_administrator_custom_title()to ChatMember class from chatmember.py? - I think because of this description,
This is an obsolete mode saved for backward compatibility. To use this mode, pass Markdown to the parse_mode field fromchapter "Markdown" in Telegram Bot API documentation, we need to useMarkdownV2as * default * option in all related to markdown functions. - Instead of the
markdown_smt_v2statements, perhaps we need to use themarkdown_v2_smt? (one of them is commented in this review)
|
|
Overall looking good. Just some questions and remarks added |
|
Codecov, mainly is unhappy because of the added checks for py2 (in parse_entities) which are never hit, because we don't test 2.7 anymore. You can ignore it |
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Thanks for the review @Eldinnie! Will try to incorporate the changes on the WE at the latest
|
@Bibo-Joshi Since we want to get this done asap, I guess I can chime in this afternoon for me, if thats alright with you |
|
Latest commit closes #1654 . Put this here since we're fiddling with |
|
Just a friendly reminder, I think it better belongs here. Please bump supported Bot API version number in https://github.com/python-telegram-bot/python-telegram-bot/blob/master/README.rst It says 4.1 now, but one could tell from the changelogs, that actually it is 4.4 now. I think it might be repelling or misleading for new users of this great wrapper :-) |
|
pytest failures seem unrelated ( |
…ique_id`` attribute. NOTE: this will only work when `PTB supports Bot API 4.5`__. __ python-telegram-bot/python-telegram-bot#1508
PR for the API 4.5 changes. Closes #1689
Original description:
Cherry-picked from #1464 since we're not sure yet how Telegram will actually handle nested entities in API 4.5.
This only allows something like
_bold *within* italic_and not*bold _overlapping* italic_. The announcement is not every clear, if that is also allowed …Leaving this here as a reminder, that we already have some code for that case.