mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix get_messages type hint (#4357)
This commit is contained in:
parent
3625bf849d
commit
3ac11e15ec
|
@ -553,7 +553,9 @@ class MessageMethods:
|
||||||
scheduled=scheduled
|
scheduled=scheduled
|
||||||
)
|
)
|
||||||
|
|
||||||
async def get_messages(self: 'TelegramClient', *args, **kwargs) -> 'hints.TotalList':
|
async def get_messages(
|
||||||
|
self: 'TelegramClient', *args, **kwargs
|
||||||
|
) -> typing.Union['hints.TotalList', typing.Optional['types.Message']]:
|
||||||
"""
|
"""
|
||||||
Same as `iter_messages()`, but returns a
|
Same as `iter_messages()`, but returns a
|
||||||
`TotalList <telethon.helpers.TotalList>` instead.
|
`TotalList <telethon.helpers.TotalList>` instead.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user