mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 21:03: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(
|
def get_participants(
|
||||||
self: 'TelegramClient',
|
self: 'TelegramClient',
|
||||||
entity: 'hints.EntityLike',
|
entity: 'hints.EntityLike',
|
||||||
limit: float = None,
|
limit: float = (),
|
||||||
*,
|
*,
|
||||||
search: str = '',
|
search: str = '',
|
||||||
filter: '_tl.TypeChannelParticipantsFilter' = None) -> _ParticipantsIter:
|
filter: '_tl.TypeChannelParticipantsFilter' = None) -> _ParticipantsIter:
|
||||||
|
@ -390,7 +390,7 @@ def get_participants(
|
||||||
def get_admin_log(
|
def get_admin_log(
|
||||||
self: 'TelegramClient',
|
self: 'TelegramClient',
|
||||||
entity: 'hints.EntityLike',
|
entity: 'hints.EntityLike',
|
||||||
limit: float = None,
|
limit: float = (),
|
||||||
*,
|
*,
|
||||||
max_id: int = 0,
|
max_id: int = 0,
|
||||||
min_id: int = 0,
|
min_id: int = 0,
|
||||||
|
@ -440,7 +440,7 @@ def get_admin_log(
|
||||||
def get_profile_photos(
|
def get_profile_photos(
|
||||||
self: 'TelegramClient',
|
self: 'TelegramClient',
|
||||||
entity: 'hints.EntityLike',
|
entity: 'hints.EntityLike',
|
||||||
limit: int = None,
|
limit: int = (),
|
||||||
*,
|
*,
|
||||||
offset: int = 0,
|
offset: int = 0,
|
||||||
max_id: int = 0) -> _ProfilePhotoIter:
|
max_id: int = 0) -> _ProfilePhotoIter:
|
||||||
|
|
|
@ -138,7 +138,7 @@ class _DraftsIter(requestiter.RequestIter):
|
||||||
|
|
||||||
def get_dialogs(
|
def get_dialogs(
|
||||||
self: 'TelegramClient',
|
self: 'TelegramClient',
|
||||||
limit: float = None,
|
limit: float = (),
|
||||||
*,
|
*,
|
||||||
offset_date: 'hints.DateLike' = None,
|
offset_date: 'hints.DateLike' = None,
|
||||||
offset_id: int = 0,
|
offset_id: int = 0,
|
||||||
|
|
|
@ -407,7 +407,7 @@ def iter_download(
|
||||||
*,
|
*,
|
||||||
offset: int = 0,
|
offset: int = 0,
|
||||||
stride: int = None,
|
stride: int = None,
|
||||||
limit: int = None,
|
limit: int = (),
|
||||||
chunk_size: int = None,
|
chunk_size: int = None,
|
||||||
request_size: int = MAX_CHUNK_SIZE,
|
request_size: int = MAX_CHUNK_SIZE,
|
||||||
file_size: int = None,
|
file_size: int = None,
|
||||||
|
|
|
@ -329,7 +329,7 @@ async def _get_peer(self: 'TelegramClient', input_peer: 'hints.EntityLike'):
|
||||||
def get_messages(
|
def get_messages(
|
||||||
self: 'TelegramClient',
|
self: 'TelegramClient',
|
||||||
entity: 'hints.EntityLike',
|
entity: 'hints.EntityLike',
|
||||||
limit: float = None,
|
limit: float = (),
|
||||||
*,
|
*,
|
||||||
offset_date: 'hints.DateLike' = None,
|
offset_date: 'hints.DateLike' = None,
|
||||||
offset_id: int = 0,
|
offset_id: int = 0,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user