switched to uv and gitea-actions-based pipeline
All checks were successful
Build container / Build (pull_request) Successful in 43s
All checks were successful
Build container / Build (pull_request) Successful in 43s
This commit is contained in:
@@ -3,7 +3,7 @@ from telegram.ext import ConversationHandler, CommandHandler, MessageHandler, fi
|
||||
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, Update, InputMediaPhoto
|
||||
import models
|
||||
from telegram.constants import ParseMode
|
||||
# ACTION_CHOICE, DATE_ENTRY, ADD_CONTENT = range(3)
|
||||
|
||||
MEMORY_CHOICE = range(1)
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class MemoryHandler(BaseHandler):
|
||||
|
||||
async def entry_point(self, update: Update, context: CallbackContext):
|
||||
await super().entry_point(update, context)
|
||||
if os.getenv("DOCKERIZED", "false") == "true" and os.getenv("CHAT_ID") != str(update.message.chat_id):
|
||||
if models.IS_PRODUCTION and os.getenv("CHAT_ID") != str(update.message.chat_id):
|
||||
await update.message.reply_text("You are not authorized to use this bot")
|
||||
return ConversationHandler.END
|
||||
|
||||
@@ -56,9 +56,9 @@ class MemoryHandler(BaseHandler):
|
||||
await update.message.reply_text(
|
||||
f"Which moment would you like to remember?", reply_markup=keyboard
|
||||
)
|
||||
|
||||
|
||||
context.chat_data["kept_matches"] = list(matching_models)
|
||||
|
||||
|
||||
return MEMORY_CHOICE
|
||||
|
||||
async def choose_memory(self, update: Update, context: CallbackContext):
|
||||
|
Reference in New Issue
Block a user