Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 3177dab

Browse files
authored
Fixed restart
1 parent 058c0fb commit 3177dab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deegram/plugins/restart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
remove('restart.pickle')
1818

1919

20-
@bot.on(NewMessage(pattern='/restart'))
20+
@bot.on(NewMessage(pattern='/restart', from_users=OWNER_ID))
2121
async def restart(event):
2222
restart_message = await event.reply("Restarting, Please wait!")
2323
with open('restart.pickle', 'wb') as status:

0 commit comments

Comments
 (0)