Esempio n. 1
0
async def mark_chat_unread(_, message: Message):
    await asyncio.gather(
        message.delete(),
        UserBot.send(
            functions.messages.MarkDialogUnread(peer=await
                                                UserBot.resolve_peer(
                                                    message.chat.id),
                                                unread=True)))
Esempio n. 2
0
async def screenshot(_, message: Message):
    await asyncio.gather(
        message.delete(),
        UserBot.send(
            functions.messages.SendScreenshotNotification(
                peer=await UserBot.resolve_peer(message.chat.id),
                reply_to_msg_id=0,
                random_id=UserBot.rnd_id(),
            )))