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

@@ -67,7 +67,7 @@ Many other common methods for quick scripts are also available:
# The utils package has some goodies, like .get_display_name()
from telethon import utils
for message in client.get_message_history('username', limit=10):
for message in client.iter_messages('username', limit=10):
print(utils.get_display_name(message.sender), message.message)
# Dialogs are the conversations you have open