Update usage of deprecated methods in the docs

This commit is contained in:
Lonami Exo
2018-04-25 09:55:34 +02:00
parent 387a255221
commit 5d9cf513bd
5 changed files with 7 additions and 7 deletions

View File

@@ -207,7 +207,7 @@ class InteractiveTelegramClient(TelegramClient):
# History
elif msg == '!h':
# First retrieve the messages and some information
messages = self.get_message_history(entity, limit=10)
messages = self.get_messages(entity, limit=10)
# Iterate over all (in reverse order so the latest appear
# the last in the console) and print them with format:
@@ -216,7 +216,7 @@ class InteractiveTelegramClient(TelegramClient):
# Note that the .sender attribute is only there for
# convenience, the API returns it differently. But
# this shouldn't concern us. See the documentation
# for .get_message_history() for more information.
# for .iter_messages() for more information.
name = get_display_name(msg.sender)
# Format the message content