diff --git a/readthedocs/extra/basic/getting-started.rst b/readthedocs/extra/basic/getting-started.rst index 7c3fcad6..5ded472e 100644 --- a/readthedocs/extra/basic/getting-started.rst +++ b/readthedocs/extra/basic/getting-started.rst @@ -53,7 +53,7 @@ Basic Usage # Listing all the dialogs (conversations you have open) for dialog in client.get_dialogs(limit=10): - print(utils.get_display_name(dialog.entity), dialog.draft.message) + print(utils.get_display_name(dialog.entity), dialog.draft.text) # Downloading profile photos (default path is the working directory) client.download_profile_photo('username') diff --git a/readthedocs/extra/basic/telegram-client.rst b/readthedocs/extra/basic/telegram-client.rst index 706ccfda..5116e32b 100644 --- a/readthedocs/extra/basic/telegram-client.rst +++ b/readthedocs/extra/basic/telegram-client.rst @@ -74,7 +74,7 @@ Many other common methods for quick scripts are also available: # Dialogs are the conversations you have open for dialog in client.get_dialogs(limit=10): - print(utils.get_display_name(dialog.entity), dialog.draft.message) + print(utils.get_display_name(dialog.entity), dialog.draft.text) # Default path is the working directory client.download_profile_photo('username') diff --git a/readthedocs/extra/examples/chats-and-channels.rst b/readthedocs/extra/examples/chats-and-channels.rst index d9e21caf..9722c3dc 100644 --- a/readthedocs/extra/examples/chats-and-channels.rst +++ b/readthedocs/extra/examples/chats-and-channels.rst @@ -215,7 +215,7 @@ Restricting Users ***************** Similar to how you give or revoke admin permissions, you can edit the -banned rights of an user through :tl:`EditAdminRequest` and its parameter +banned rights of an user through :tl:`EditBannedRequest` and its parameter :tl:`ChannelBannedRights`: .. code-block:: python