1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #803 from noideaw/patch-2

added can_invite_users parameter to restrict_chat_member function param description
This commit is contained in:
Badiboy 2020-04-24 18:16:25 +03:00 committed by GitHub
commit 1ed3bc2a53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -949,6 +949,8 @@ class TeleBot:
use inline bots, implies can_send_media_messages
:param can_add_web_page_previews: Pass True, if the user may add web page previews to their messages,
implies can_send_media_messages
:param can_invite_users: Pass True, if the user is allowed to invite new users to the chat,
implies can_invite_users
:return: types.Message
"""
return apihelper.restrict_chat_member(self.token, chat_id, user_id, until_date, can_send_messages,