Changeset 71efb80 in python-cinema-club-bot
- Timestamp:
- Oct 8, 2024, 8:19:10 PM (2 months ago)
- Branches:
- master
- Children:
- 0d67456
- Parents:
- 5179f7b
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app.py
r5179f7b r71efb80 8 8 # You should have received a copy of the CC0 Public Domain Dedication along 9 9 # with this software. If not, see: 10 # <http://creativecommons.org/publicdomain/zero/1.0/> .10 # <http://creativecommons.org/publicdomain/zero/1.0/> 11 11 12 12 from telegram import Update, error … … 17 17 import os 18 18 import logging 19 from .strings import INVALID_COMMAND 19 20 20 21 load_dotenv() … … 25 26 ) 26 27 28 27 29 async def about(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: 28 30 await update.message.reply_text(''' 29 31 Version 0.0 30 32 31 33 python-cinema-club-bot is a bot for Telegram specialized for managing cinema club activities. This software is released as Public Domain using CC0 license. 32 34 … … 42 44 43 45 ''') 46 44 47 45 48 async def add_choose_cycle( … … 64 67 65 68 async def unknown(update: Update, context: ContextTypes.DEFAULT_TYPE): 66 await context.bot.send_message(chat_id=update.effective_chat.id, text= "Invalid command. Available commands: /add")69 await context.bot.send_message(chat_id=update.effective_chat.id, text=INVALID_COMMAND) 67 70 68 71 app = ApplicationBuilder().token(
Note:
See TracChangeset
for help on using the changeset viewer.