diff --git a/telethon/_client/chats.py b/telethon/_client/chats.py index 205113d6..221a420a 100644 --- a/telethon/_client/chats.py +++ b/telethon/_client/chats.py @@ -374,7 +374,7 @@ class _ProfilePhotoIter(requestiter.RequestIter): def get_participants( self: 'TelegramClient', entity: 'hints.EntityLike', - limit: float = None, + limit: float = (), *, search: str = '', filter: '_tl.TypeChannelParticipantsFilter' = None) -> _ParticipantsIter: @@ -390,7 +390,7 @@ def get_participants( def get_admin_log( self: 'TelegramClient', entity: 'hints.EntityLike', - limit: float = None, + limit: float = (), *, max_id: int = 0, min_id: int = 0, @@ -440,7 +440,7 @@ def get_admin_log( def get_profile_photos( self: 'TelegramClient', entity: 'hints.EntityLike', - limit: int = None, + limit: int = (), *, offset: int = 0, max_id: int = 0) -> _ProfilePhotoIter: diff --git a/telethon/_client/dialogs.py b/telethon/_client/dialogs.py index 444a0570..2ee272fe 100644 --- a/telethon/_client/dialogs.py +++ b/telethon/_client/dialogs.py @@ -138,7 +138,7 @@ class _DraftsIter(requestiter.RequestIter): def get_dialogs( self: 'TelegramClient', - limit: float = None, + limit: float = (), *, offset_date: 'hints.DateLike' = None, offset_id: int = 0, diff --git a/telethon/_client/downloads.py b/telethon/_client/downloads.py index 50a383dd..1f340982 100644 --- a/telethon/_client/downloads.py +++ b/telethon/_client/downloads.py @@ -407,7 +407,7 @@ def iter_download( *, offset: int = 0, stride: int = None, - limit: int = None, + limit: int = (), chunk_size: int = None, request_size: int = MAX_CHUNK_SIZE, file_size: int = None, diff --git a/telethon/_client/messages.py b/telethon/_client/messages.py index 66d3512e..ad4324d7 100644 --- a/telethon/_client/messages.py +++ b/telethon/_client/messages.py @@ -329,7 +329,7 @@ async def _get_peer(self: 'TelegramClient', input_peer: 'hints.EntityLike'): def get_messages( self: 'TelegramClient', entity: 'hints.EntityLike', - limit: float = None, + limit: float = (), *, offset_date: 'hints.DateLike' = None, offset_id: int = 0,