diff --git a/LichessClientTG_bot/bot.py b/LichessClientTG_bot/bot.py index 57c664b..df8f50a 100644 --- a/LichessClientTG_bot/bot.py +++ b/LichessClientTG_bot/bot.py @@ -681,6 +681,13 @@ class LichessBot: """Week command""" await self.get_stats(update, context, "week") + 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) + await update.message.reply_text(support_msg, parse_mode='HTML') + self.counters.increment('support') + async def last_year_or_1000games(self, update: Update, context: ContextTypes.DEFAULT_TYPE): """Get last year stats or last 1000 rated games, whichever limits first""" user_id = update.effective_user.id @@ -984,6 +991,7 @@ class LichessBot: application.add_handler(CommandHandler("yesterday", self.yesterday)) application.add_handler(CommandHandler("week", self.week)) application.add_handler(CommandHandler("lastYear_or_1000games", self.last_year_or_1000games)) + application.add_handler(CommandHandler("support", self.support)) application.add_handler(CommandHandler("setperiod", self.setperiod)) application.add_handler(CommandHandler("lang", self.check_language)) application.add_handler(CommandHandler("resetlang", self.reset_language)) diff --git a/LichessClientTG_bot/i18n.py b/LichessClientTG_bot/i18n.py index 528d4fb..c5eb5fa 100644 --- a/LichessClientTG_bot/i18n.py +++ b/LichessClientTG_bot/i18n.py @@ -92,6 +92,15 @@ TRANSLATIONS = { 'period_games_section': "{emoji} {game_type} — {games_count} games • {rating_change}\nRating: {rating}\nāœ… Wins: {wins}\nāŒ Losses: {losses}\nšŸ¤ Draws: {draws}\n\n", 'no_activity': "šŸ“­ No activity for this period", + # Support + 'support_message': ( + "šŸ’¬ Support & Feedback\n\n" + "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 English and Russian languages.\n\n" + "šŸ“§ Contact: @vrubelr" + ), + # Common 'period_minutes_suffix': "m", }