Fix 3.8 syntax warning and erroneous documentation

Closes #1340 (syntax warning)
Closes #1341 (outdated docs)
This commit is contained in:
Lonami Exo
2019-12-05 11:14:02 +01:00
parent cd37478e31
commit b985dcd248
5 changed files with 4 additions and 8 deletions

View File

@@ -501,7 +501,7 @@ class MessageMethods:
photos = await client.get_messages(chat, None, filter=InputMessagesFilterPhotos)
# Get messages by ID:
message_1337 = await client.get_messages(chats, ids=1337)
message_1337 = await client.get_messages(chat, ids=1337)
"""
if len(args) == 1 and 'limit' not in kwargs:
if 'min_id' in kwargs and 'max_id' in kwargs: