Update iter_ usages with get_

This commit is contained in:
Lonami Exo
2022-02-04 13:09:57 +01:00
parent 3b12cc3e51
commit ae43a47602
8 changed files with 30 additions and 30 deletions

View File

@@ -119,7 +119,7 @@ async def root():
# They are logged in, show them some messages from their first dialog
dialog = (await client.get_dialogs())[0]
result = '<h1>{}</h1>'.format(dialog.title)
async for m in client.iter_messages(dialog, 10):
async for m in client.get_messages(dialog, 10):
result += await(format_message(m))
return await render_template_string(BASE_TEMPLATE, content=result)