diff --git a/readthedocs/basic/quick-start.rst b/readthedocs/basic/quick-start.rst index b3168701..cd187c81 100644 --- a/readthedocs/basic/quick-start.rst +++ b/readthedocs/basic/quick-start.rst @@ -19,7 +19,7 @@ use these if possible. # Getting information about yourself me = await client.get_me() - # "me" is an User object. You can pretty-print + # "me" is a user object. You can pretty-print # any Telegram object with the "stringify" method: print(me.stringify()) diff --git a/readthedocs/concepts/entities.rst b/readthedocs/concepts/entities.rst index 4ee55d48..40bfac30 100644 --- a/readthedocs/concepts/entities.rst +++ b/readthedocs/concepts/entities.rst @@ -289,7 +289,7 @@ applications"? Now do the same with the library. Use what applies: # (These examples assume you are inside an "async def") async with client: - # Does it have an username? Use it! + # Does it have a username? Use it! entity = await client.get_entity(username) # Do you have a conversation open with them? Get dialogs. diff --git a/readthedocs/misc/changelog.rst b/readthedocs/misc/changelog.rst index 9f8cacfa..2a64c106 100644 --- a/readthedocs/misc/changelog.rst +++ b/readthedocs/misc/changelog.rst @@ -3806,7 +3806,7 @@ things with the ``InteractiveTelegramClient``: - **Download** any message's media (photos, documents or even contacts!). - **Receive message updates** as you talk (i.e., someone sent you a message). -It actually is an usable-enough client for your day by day. You could +It actually is a usable-enough client for your day by day. You could even add ``libnotify`` and pop, you're done! A great cli-client with desktop notifications. diff --git a/readthedocs/quick-references/client-reference.rst b/readthedocs/quick-references/client-reference.rst index 2a1553af..91b9bfe2 100644 --- a/readthedocs/quick-references/client-reference.rst +++ b/readthedocs/quick-references/client-reference.rst @@ -9,7 +9,7 @@ you may need when using Telethon. They are sorted by relevance and are not in alphabetical order. You should use this page to learn about which methods are available, and -if you need an usage example or further description of the arguments, be +if you need a usage example or further description of the arguments, be sure to follow the links. .. contents:: diff --git a/telethon/client/auth.py b/telethon/client/auth.py index 8e9cb0ef..9665262b 100644 --- a/telethon/client/auth.py +++ b/telethon/client/auth.py @@ -92,7 +92,7 @@ class AuthMethods: # Starting as a bot account await client.start(bot_token=bot_token) - # Starting as an user account + # Starting as a user account await client.start(phone) # Please enter the code you received: 12345 # Please enter your password: ******* diff --git a/telethon/client/messages.py b/telethon/client/messages.py index 7574142f..f526e318 100644 --- a/telethon/client/messages.py +++ b/telethon/client/messages.py @@ -406,7 +406,7 @@ class MessageMethods: from_user (`entity`): Only messages from this user will be returned. - This parameter will be ignored if it is not an user. + This parameter will be ignored if it is not a user. wait_time (`int`): Wait time (in seconds) between different diff --git a/telethon/extensions/__init__.py b/telethon/extensions/__init__.py index 903460b6..a3c77295 100644 --- a/telethon/extensions/__init__.py +++ b/telethon/extensions/__init__.py @@ -1,6 +1,6 @@ """ Several extensions Python is missing, such as a proper class to handle a TCP -communication with support for cancelling the operation, and an utility class +communication with support for cancelling the operation, and a utility class to read arbitrary binary data in a more comfortable way, with int/strings/etc. """ from .binaryreader import BinaryReader diff --git a/telethon/utils.py b/telethon/utils.py index b9fab2f1..d2dce173 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -1072,7 +1072,7 @@ def _rle_encode(string): def _decode_telegram_base64(string): """ - Decodes an url-safe base64-encoded string into its bytes + Decodes a url-safe base64-encoded string into its bytes by first adding the stripped necessary padding characters. This is the way Telegram shares binary data as strings, diff --git a/telethon_generator/data/errors.csv b/telethon_generator/data/errors.csv index 1ca79418..81813df1 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -297,7 +297,7 @@ TYPES_EMPTY,400,The types field is empty TYPE_CONSTRUCTOR_INVALID,,The type constructor is invalid UNKNOWN_METHOD,500,The method you tried to call cannot be called on non-CDN DCs UNTIL_DATE_INVALID,400,That date cannot be specified in this request (try using None) -URL_INVALID,400,The URL used was invalid (e.g. when answering a callback with an URL that's not t.me/yourbot or your game's URL) +URL_INVALID,400,The URL used was invalid (e.g. when answering a callback with a URL that's not t.me/yourbot or your game's URL) USERNAME_INVALID,400,"Nobody is using this username, or the username is unacceptable. If the latter, it must match r""[a-zA-Z][\w\d]{3,30}[a-zA-Z\d]""" USERNAME_NOT_MODIFIED,400,The username is not different from the current username USERNAME_NOT_OCCUPIED,400,The username is not in use by anyone else yet