Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 17 commits into from
Jul 1, 2017
Merged

Bot api 3.1 #698

merged 17 commits into from
Jul 1, 2017

Conversation

jsmnbom
Copy link
Member

@jsmnbom jsmnbom commented Jun 30, 2017

See #697 for changes

This should implement everything.

Missing tests (how much can we even test?)

Closes #697

jsmnbom added 4 commits June 30, 2017 20:33
- 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
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
Copy link
Contributor

@evgfilim1 evgfilim1 Jul 1, 2017

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)

jsmnbom and others added 5 commits July 1, 2017 13:59
@tsnoam tsnoam merged commit 94ed4cb into master Jul 1, 2017
@tsnoam tsnoam deleted the bot-api-3.1 branch July 1, 2017 15:09
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API changes - v3.1 - June 30, 2017
3 participants