-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Bot api 3.1 #698
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
Merged
Merged
Bot api 3.1 #698
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add until_date to kick_chat_member - Add restrict_chat_member - Add promote_chat_member - Add export_chat_invite_link - Add set_chat_photo refs #679
- Add delete_chat_photo - Add set_chat_title - Add set_chat_description - Add pin_chat_message - Add unpin_chat_message refs #679
- Add until_date, can_be_edited, can_change_info, can_post_messages, can_edit_messages, can_delete_messages, can_invite_users, can_restrict_members, can_pin_messages, can_promote_members, can_send_messages, can_send_media_messages, can_send_other_messages and can_add_web_page_previews to ChatMember - Add photo, description and invite_link to Chat - Move _totimestamp and _fromtimestamp from Message to utils.helpers since it's now needed more than once place refs #679
This makes it actually works on python < 3.3
evgfilim1
reviewed
Jul 1, 2017
telegram/bot.py
Outdated
@@ -2051,3 +2426,12 @@ def __reduce__(self): | |||
sendInvoice = send_invoice | |||
answerShippingQuery = answer_shipping_query | |||
answerPreCheckoutQuery = answer_pre_checkout_query | |||
restrictChatMember = restrict_chat_member | |||
promoteChatMemmber = promote_chat_member |
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.
You've mistyped, there should be promoteChatMember
(that's why tests.test_official
fails here)
- Fix non unicode chars in bot.py - Fix misspelling promoteChatMemmber != promoteChatMember
tsnoam
approved these changes
Jul 1, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See #697 for changes
This should implement everything.
Missing tests (how much can we even test?)
Closes #697