skip to Main Content

How do I mark a message as read? – Telegram API

How do I mark a message as read? app = Client(session_name, api_id, api_hash) @app.on_message() async def my_handler(client, message): await app.send_message(message.from_user.username, "ok boss") await app.read_chat_history(message.from_user.username) app.run() I expected the bot's message to be ticked that he had read it

VIEW QUESTION

How to delete a private chat (pyrogram) – Telegram API

i tried pyrogram.raw.functions.messages.DeleteChat but get following trackback pyrogram.errors.exceptions.bad_request_400.PeerIdInvalid: Telegram says: [400 PEER_ID_INVALID] - The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it (caused by "messages.DeleteChat") account.UpdateNotifySettings has the…

VIEW QUESTION
Back To Top
Search