Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AvenCores authored May 15, 2023
1 parent 0cd6610 commit 9eb55a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def ban_user(message):
markup.add(button2)
bot.send_message(message.chat.id, f"🛑 Аккаунт {user_id} был успешно заблокирован!", reply_markup=markup, parse_mode="Markdown")
save_banned_users(banned_users)
os.execl(sys.executable, sys.executable, *sys.argv)
os.execl(sys.executable, 'python', 'main.py')
else:
markup = types.InlineKeyboardMarkup()
button1 = types.InlineKeyboardButton("Cкрыть уведомление", callback_data="dellthiserror")
Expand Down Expand Up @@ -234,7 +234,7 @@ def unban_user(message):
markup.add(button1)
markup.add(button2)
bot.send_message(message.chat.id, f"✅ Вы разблокировали аккаунт {user_id}.", reply_markup=markup, parse_mode="Markdown")
os.execl(sys.executable, sys.executable, *sys.argv)
os.execl(sys.executable, 'python', 'main.py')
else:
markup = types.InlineKeyboardMarkup()
button1 = types.InlineKeyboardButton("Cкрыть уведомление", callback_data="dellthiserror")
Expand All @@ -259,7 +259,7 @@ def handle_reboot(message):
markup.add(button1)
markup.add(button2)
bot.send_message(message.chat.id, text=f"✅ *Бот был успешно перезапущен!*", reply_markup=markup, parse_mode="Markdown")
os.execl(sys.executable, sys.executable, *sys.argv)
os.execl(sys.executable, 'python', 'main.py')
else:
markup = types.InlineKeyboardMarkup()
button1 = types.InlineKeyboardButton("Cкрыть уведомление", callback_data="dellthiserror")
Expand Down

0 comments on commit 9eb55a1

Please sign in to comment.