From e9c5e719f19775b7a7e7f7dda5173b355583e7fc Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 24 Feb 2020 13:15:56 +0100 Subject: [PATCH] Minor docs update, bump v1.11.3 --- telethon/client/dialogs.py | 2 +- telethon/version.py | 2 +- telethon_generator/data/errors.csv | 1 + telethon_generator/data/methods.csv | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/telethon/client/dialogs.py b/telethon/client/dialogs.py index 34173c4c..4fd5f3da 100644 --- a/telethon/client/dialogs.py +++ b/telethon/client/dialogs.py @@ -245,7 +245,7 @@ class DialogMethods: # Getting only archived dialogs (both equivalent) archived = await client.get_dialogs(folder=1) - non_archived = await client.get_dialogs(archived=True) + archived = await client.get_dialogs(archived=True) """ return await self.iter_dialogs(*args, **kwargs).collect() diff --git a/telethon/version.py b/telethon/version.py index fe6bbf97..b7016736 100644 --- a/telethon/version.py +++ b/telethon/version.py @@ -1,3 +1,3 @@ # Versions should comply with PEP440. # This line is parsed in setup.py: -__version__ = '1.11.2' +__version__ = '1.11.3' diff --git a/telethon_generator/data/errors.csv b/telethon_generator/data/errors.csv index 302b0e6b..9c3c579e 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -68,6 +68,7 @@ CONNECTION_LAYER_INVALID,400,The very first request must always be InvokeWithLay CONNECTION_NOT_INITED,400,Connection not initialized CONNECTION_SYSTEM_EMPTY,400,Connection system empty CONTACT_ID_INVALID,400,The provided contact ID is invalid +CONTACT_NAME_EMPTY,400,The provided contact name cannot be empty DATA_INVALID,400,Encrypted data invalid DATA_JSON_INVALID,400,The provided JSON data is invalid DATE_EMPTY,400,Date empty diff --git a/telethon_generator/data/methods.csv b/telethon_generator/data/methods.csv index e1d04b86..38d8d61f 100644 --- a/telethon_generator/data/methods.csv +++ b/telethon_generator/data/methods.csv @@ -99,6 +99,7 @@ channels.togglePreHistoryHidden,user,CHAT_LINK_EXISTS channels.toggleSignatures,user,CHANNEL_INVALID channels.toggleSlowMode,user,SECONDS_INVALID channels.updateUsername,user,CHANNELS_ADMIN_PUBLIC_TOO_MUCH CHANNEL_INVALID CHAT_ADMIN_REQUIRED USERNAME_INVALID USERNAME_OCCUPIED +contacts.addContact,user,CONTACT_NAME_EMPTY contacts.block,user,CONTACT_ID_INVALID contacts.deleteByPhones,user, contacts.deleteContact,user,CONTACT_ID_INVALID