small privacy improvements
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-14 11:36:39 +02:00
parent 2afde219a9
commit 3975ca5997
2 changed files with 10 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import datetime
import os
from telegram.ext import ConversationHandler, CommandHandler, MessageHandler, filters, CallbackQueryHandler, CallbackContext
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, Update, InputMediaPhoto
# ACTION_CHOICE, DATE_ENTRY, ADD_CONTENT = range(3)
@@ -27,6 +27,9 @@ 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):
await update.message.reply_text("You are not authorized to use this bot")
return ConversationHandler.END
search_string = " ".join(context.args)