-
Notifications
You must be signed in to change notification settings - Fork 5.7k
API 4.5 #1508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API 4.5 #1508
Conversation
All reactions
-
👍 1 reaction
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 ( |
All reactions
-
👍 1 reaction
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 from
chapter "Markdown" in Telegram Bot API documentation, we need to useMarkdownV2
as * default * option in all related to markdown functions. - Instead of the
markdown_smt_v2
statements, perhaps we need to use themarkdown_v2_smt
? (one of them is commented in this review)
Sorry, something went wrong.
All reactions
|
All reactions
Sorry, something went wrong.
Overall looking good. Just some questions and remarks added |
All reactions
Sorry, something went wrong.
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 |
All reactions
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review @Eldinnie! Will try to incorporate the changes on the WE at the latest
Sorry, something went wrong.
All reactions
@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 |
All reactions
Sorry, something went wrong.
Latest commit closes #1654 . Put this here since we're fiddling with |
All reactions
Sorry, something went wrong.
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 :-) |
All reactions
Sorry, something went wrong.
pytest failures seem unrelated ( |
All reactions
Sorry, something went wrong.
…ique_id`` attribute. NOTE: this will only work when `PTB supports Bot API 4.5`__. __ python-telegram-bot/python-telegram-bot#1508
Poolitzer
Eldinnie
dmytrohoi
tsnoam
Successfully merging this pull request may close these issues.
4.5 bot api update arrived
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.