add versions
This commit is contained in:
parent
a7ad36b961
commit
d23f026b19
3 changed files with 7 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ from telegram.ext import (
|
|||
from config import (
|
||||
TELEGRAM_BOT_TOKEN, PERIOD_OPTIONS, POLL_INTERVAL,
|
||||
POLL_TIMEOUT, DROP_PENDING_UPDATES, ALLOWED_UPDATES,
|
||||
LICHESS_STATS_API_BASE_URL, ADMINPANEL_TELEGRAM_BOT_TOKEN
|
||||
LICHESS_STATS_API_BASE_URL, ADMINPANEL_TELEGRAM_BOT_TOKEN, BOT_VERSION
|
||||
)
|
||||
from database import Database
|
||||
from lichess_api import LichessAPI
|
||||
|
|
@ -702,7 +702,7 @@ class LichessBot:
|
|||
async def support(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
|
||||
"""Support command - show contact information"""
|
||||
lang = self.get_user_language_from_update(update)
|
||||
support_msg = t('support_message', lang)
|
||||
support_msg = t('support_message', lang, version=BOT_VERSION)
|
||||
await update.message.reply_text(support_msg, parse_mode='HTML')
|
||||
self.counters.increment('support')
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ DATABASE_PATH = _resolve_database_path()
|
|||
# Period options for /setperiod command
|
||||
PERIOD_OPTIONS = [0, 15, 30, 60, 120, 180, 360, 720, 1440] # minutes (0=disable, then: 15min, 30min, 1h, 2h, 3h, 6h, 12h, 24h)
|
||||
|
||||
# Bot Version
|
||||
BOT_VERSION = "1.0.0"
|
||||
|
||||
# Telegram Bot Long Polling Configuration
|
||||
POLL_INTERVAL = 1.0 # seconds
|
||||
POLL_TIMEOUT = 30 # seconds
|
||||
|
|
|
|||
|
|
@ -100,7 +100,8 @@ TRANSLATIONS = {
|
|||
"You can write to the service developer directly and report a problem, suggest new features, or ask a question.\n\n"
|
||||
"I will be happy to review every message and respond to it.\n\n"
|
||||
"The developer accepts messages in <b>English</b> and <b>Russian</b> languages.\n\n"
|
||||
"📧 Contact: <a href=\"https://t.me/vrubelr\">@vrubelr</a>"
|
||||
"📧 Contact: <a href=\"https://t.me/vrubelr\">@vrubelr</a>\n\n"
|
||||
"📦 Bot version: <b>{version}</b>"
|
||||
),
|
||||
|
||||
# Common
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue