mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-06 20:04:51 +00:00
typo :
This commit is contained in:
parent
3e297573df
commit
5c43e40d8f
1 changed files with 1 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ async def update_restart(self: Client, ctx: Message, strings) -> "Message":
|
||||||
async def updtebot(client, update, users, chats):
|
async def updtebot(client, update, users, chats):
|
||||||
if isinstance(update, UpdateBotStopped):
|
if isinstance(update, UpdateBotStopped):
|
||||||
user = users[update.user_id]
|
user = users[update.user_id]
|
||||||
if update.stopped and await db.is_user_exist(user.id)::
|
if update.stopped and await db.is_user_exist(user.id):
|
||||||
await db.delete_user(user.id)
|
await db.delete_user(user.id)
|
||||||
await client.send_msg(LOG_CHANNEL, f"<a href='tg://user?id={user.id}'>{user.first_name}</a> (<code>{user.id}</code>) " f"{'BLOCKED' if update.stopped else 'UNBLOCKED'} the bot at " f"{datetime.fromtimestamp(update.date)}")
|
await client.send_msg(LOG_CHANNEL, f"<a href='tg://user?id={user.id}'>{user.first_name}</a> (<code>{user.id}</code>) " f"{'BLOCKED' if update.stopped else 'UNBLOCKED'} the bot at " f"{datetime.fromtimestamp(update.date)}")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue