aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'command.py')
-rw-r--r--command.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/command.py b/command.py
index 6feeec7..b12483a 100644
--- a/command.py
+++ b/command.py
@@ -2,7 +2,7 @@ from telegram import Update
2from telegram.constants import ParseMode 2from telegram.constants import ParseMode
3from telegram.error import BadRequest 3from telegram.error import BadRequest
4from telegram.ext import ContextTypes, ConversationHandler 4from telegram.ext import ContextTypes, ConversationHandler
5from dbstore.peewee_store import get_user_access_key, get_user_home_instance 5from dbstore.peewee_store import get_user_access_key, get_user_home_instance, delete_user_by_id
6from config import * 6from config import *
7 7
8 8
@@ -46,7 +46,8 @@ async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No
46 46
47 47
48async def logout_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: 48async def logout_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
49 await update.message.reply_text(PROMPT_LOGOUT, parse_mode=ParseMode.HTML, reply_markup=MAIN_MENU) 49 if delete_user_by_id(str(update.effective_user.id)):
50 await update.message.reply_text(PROMPT_LOGOUT_SUCCESS, parse_mode=ParseMode.HTML, reply_markup=LOGIN_MENU)
50 51
51 52
52async def toggle_visibility_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: 53async def toggle_visibility_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
Powered by cgit v1.2.3 (git 2.41.0)