mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03:00
Fix limit was no longer defaulting to empty tuple
Introduced by 5a44510e2d
.
When forwarding the calls, both signantures should match.
This commit is contained in:
parent
6f602a203e
commit
a9e1a574ae
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user