diff --git a/telethon/network/authenticator.py b/telethon/network/authenticator.py index 20581fae0..4285ee7ff 100644 --- a/telethon/network/authenticator.py +++ b/telethon/network/authenticator.py @@ -10,7 +10,9 @@ def do_authentication(transport): """Executes the authentication process with the Telegram servers. - If no error is rose, returns both the authorization key and the time offset""" + If no error is raised, returns both the authorization key and the + time offset. + """ sender = MtProtoPlainSender(transport) sender.connect() diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index 76fc223d8..bc1a3d45d 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -46,7 +46,7 @@ class TelegramClient: # Current TelegramClient version - __version__ = '0.9.1' + __version__ = '0.10' # region Initialization @@ -228,7 +228,7 @@ def _get_exported_sender(self, dc_id, init_connection=False): current authorization is exported to the new DC so that it can be used there, and the connection is initialized. - If after using the sender a ConnectionResetError is rose, + If after using the sender a ConnectionResetError is raised, this method should be called again with init_connection=True in order to perform the reconnection.""" # Thanks badoualy/kotlogram on /telegram/api/DefaultTelegramClient.kt @@ -350,8 +350,8 @@ def invoke_on_dc(self, request, dc_id, """Invokes the given request on a different DC by making use of the exported MtProtoSenders. - If 'reconnect=True', then the a reconnection will be performed - and ConnectionResetError will be rose if it occurs a second time. + If 'reconnect=True', then the a reconnection will be performed and + ConnectionResetError will be raised if it occurs a second time. """ try: sender = self._get_exported_sender( diff --git a/telethon/utils/tl_utils.py b/telethon/utils/tl_utils.py index 71a640fb9..6bb8e23e0 100644 --- a/telethon/utils/tl_utils.py +++ b/telethon/utils/tl_utils.py @@ -45,7 +45,7 @@ def get_extension(media): def get_input_peer(entity): """Gets the input peer for the given "entity" (user, chat or channel). - A ValueError is rose if the given entity isn't a supported type.""" + A ValueError is raised if the given entity isn't a supported type.""" if (isinstance(entity, InputPeerUser) or isinstance(entity, InputPeerChat) or isinstance(entity, InputPeerChannel)):