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

@@ -34,7 +34,7 @@ class HigherLevelTests(unittest.TestCase):
progress_callback=lambda c, t:
print('test_cdn_download:uploading {:.2%}...'.format(c/t))
)
msg = client.get_message_history(me)[1][0]
msg = client.get_messages(me)[1][0]
out = BytesIO()
client.download_media(msg, out)