NK
Size: a a a
NK
NK
MC
ms = await client.get_messages('telethonofftopic', limit=0); print(ms.total)
282643
K0
MC
async def bar():
return await client.get_messages("qwerty", 0, filter=InputMessagesFilterUrl)
asyncio.get_event_loop().run_until_complete(bar())
MC
MC
K0
K0
NK
async def bar():
return await client.get_messages("qwerty", 0, filter=InputMessagesFilterUrl)
asyncio.get_event_loop().run_until_complete(bar())
NK
# 10 messages containing "hello"
hello = client.get_messages(chat, 10, search='hello')
# 10 messages containing photos
from telethon.tl.types import InputMessagesFilterPhotos
photo = client.get_messages(chat, 10, filter=InputMessagesFilterPhotos)
# What's the total count of photos shared in this chat?
print(photo.total)
MC
NK
MC
NK
MC
NK
NK
MC
NK