don't wanna see login prompt
use client.connect() then client.is_user_authorized(), if False pass.
It doesn't work
and don't use with TelegramClient
so what what, and show your code properly
client = TelegramClient(sess, api_id, api_hash) await client.connect() if await client.is_user_authorized(): .... else: print ('Incorrect session')
So what is difference between client = and with as
with calls start, which does what you don't want it to do
Another question How to mark a message as read (seen message) in telethon?
Documentation for Message.mark_read
Обсуждают сегодня