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:
Lonami Exo
2021-09-26 18:37:09 +02:00
parent 6f602a203e
commit a9e1a574ae
4 changed files with 6 additions and 6 deletions

View File

@@ -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,