Update user.py

This commit is contained in:
Yura 2022-02-25 21:11:09 +02:00 committed by GitHub
parent 620c12ebd3
commit 2752d4a73e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ class User(base.TelegramObject):
async def get_profile_photos(self, offset=None, limit=None):
return await self.bot.get_user_profile_photos(self.id, offset, limit)
async def ban(until_date: typing.Union[base.Integer, datetime.datetime,
async def ban(self, until_date: typing.Union[base.Integer, datetime.datetime,
datetime.timedelta, None] = None,
revoke_messages: typing.Optional[base.Boolean] = None
) -> base.Boolean: