Changeset 71efb80 in python-cinema-club-bot


Ignore:
Timestamp:
Oct 8, 2024, 8:19:10 PM (2 months ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
0d67456
Parents:
5179f7b
Message:

Add string.py

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • app.py

    r5179f7b r71efb80  
    88# You should have received a copy of the CC0 Public Domain Dedication along
    99# with this software. If not, see:
    10 # <http://creativecommons.org/publicdomain/zero/1.0/>.
     10# <http://creativecommons.org/publicdomain/zero/1.0/>
    1111
    1212from telegram import Update, error
     
    1717import os
    1818import logging
     19from .strings import INVALID_COMMAND
    1920
    2021load_dotenv()
     
    2526)
    2627
     28
    2729async def about(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
    2830    await update.message.reply_text('''
    2931Version 0.0
    30    
     32
    3133python-cinema-club-bot is a bot for Telegram specialized for managing cinema club activities. This software is released as Public Domain using CC0 license.
    3234
     
    4244
    4345    ''')
     46
    4447
    4548async def add_choose_cycle(
     
    6467
    6568async 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)
    6770
    6871app = ApplicationBuilder().token(
Note: See TracChangeset for help on using the changeset viewer.