Files
talia_bot/app/modules/print.py
Marco Gallegos ce30e5591e ajsutes codex
2025-12-15 18:47:48 -06:00

21 lines
766 B
Python

# app/modules/print.py
from telegram import Update
from telegram.ext import ContextTypes
from permissions import is_admin
from config import TIMEZONE, CALENDAR_ID, N8N_WEBHOOK_URL
async def print_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
"""Handles the /print command."""
chat_id = update.effective_chat.id
if is_admin(chat_id):
config_details = (
f"**Configuration Details**\n"
f"Timezone: `{TIMEZONE}`\n"
f"Calendar ID: `{CALENDAR_ID}`\n"
f"n8n Webhook URL: `{N8N_WEBHOOK_URL}`\n"
)
await update.message.reply_text(config_details, parse_mode='Markdown')
else:
await update.message.reply_text("You are not authorized to use this command.")