Update dev.py

This commit is contained in:
yasirarism 2023-04-24 06:43:45 +07:00 committed by GitHub
parent feb7081bb2
commit 92d0e96008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,6 @@ import os
import re
import sys
import html
import logging
import pickle
import json
import traceback
@ -301,7 +300,7 @@ async def update_restart(self: Client, ctx: Message, strings) -> "Message":
@app.on_raw_update(group=-99)
async def updtebot(client, update, users, chats)
async def updtebot(client, update, users, chats):
if isinstance(update, UpdateBotStopped):
user = users[update.user_id]
await client.send_msg(LOG_CHANNEL, f"{user.first_name} ({user.id}) " f"{'BLOCKED' if update.stopped else 'UNBLOCKED'} the bot at " f"{datetime.fromtimestamp(update.date)}")