mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Replace get_user_profile_photos with get_profile_photos
This commit is contained in:
parent
e2f428ea46
commit
04ca6d353d
1 changed files with 5 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ import babel
|
|||
|
||||
from . import base
|
||||
from . import fields
|
||||
from ..utils import markdown
|
||||
from ..utils import markdown, deprecated
|
||||
|
||||
|
||||
class User(base.TelegramObject):
|
||||
|
|
@ -73,9 +73,13 @@ class User(base.TelegramObject):
|
|||
return markdown.hlink(name, self.url)
|
||||
return markdown.link(name, self.url)
|
||||
|
||||
@deprecated('`get_user_profile_photos` is outdated, please use `get_profile_photos`', stacklevel=3)
|
||||
async def get_user_profile_photos(self, offset=None, limit=None):
|
||||
return await self.bot.get_user_profile_photos(self.id, offset, limit)
|
||||
|
||||
async def get_profile_photos(self, offset=None, limit=None):
|
||||
return await self.bot.get_user_profile_photos(self.id, offset, limit)
|
||||
|
||||
def __hash__(self):
|
||||
return self.id
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue