Added the parameter revoke_messages to the method kickChatMember

This commit is contained in:
Oleg A 2021-03-11 09:12:24 +03:00
parent 7d522690cc
commit 0db2461318

View file

@ -1555,6 +1555,7 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin):
user_id: base.Integer,
until_date: typing.Union[base.Integer, datetime.datetime,
datetime.timedelta, None] = None,
revoke_messages: typing.Optional[base.Boolean] = None,
) -> base.Boolean:
"""
Use this method to kick a user from a group, a supergroup or a channel.
@ -1580,6 +1581,12 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin):
:type until_date: :obj:`typing.Union[base.Integer, datetime.datetime,
datetime.timedelta, None`
:param revoke_messages: Pass True to delete all messages from the chat for
the user that is being removed. If False, the user will be able to see
messages in the group that were sent before the user was removed. Always
True for supergroups and channels.
:type revoke_messages: :obj:`typing.Optional[base.Boolean]`
:return: Returns True on success
:rtype: :obj:`base.Boolean`
"""