tentatively add list command
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-21 15:09:37 +02:00
parent 2ca9389731
commit b5551eb596
6 changed files with 228 additions and 7 deletions

View File

@@ -31,12 +31,13 @@ class JournalHandler:
async def start(self, update, context):
"""Send a message when the command /start is issued."""
print(f"User: {update.message.from_user.id}")
print(f"Chat: {update.message.chat_id}")
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
print(f"User: {update.message.from_user.id}")
print(f"Chat: {update.message.chat_id}")
options = [
InlineKeyboardButton("Today", callback_data="today"),