Add Telegram bot integration and related features
ci / build-backend (push) Successful in 2m38s
ci / build-frontend (push) Successful in 1m16s
ci / tests (push) Successful in 2m33s
ci / sonar (push) Successful in 3m48s

Implemented Telegram bot functionality, including settings management, subscriber tracking, and link generation for user interaction. Updated the backend to support new Telegram-related services and database entities. Enhanced the frontend to display Telegram options and allow users to open a chat with the bot. Localization strings were added for both English and Russian to support the new features. This integration aims to improve user engagement through Telegram notifications and interactions.
This commit is contained in:
Leonid Pershin
2026-07-31 07:58:18 +03:00
parent bd3ced3637
commit 2b03e43a83
53 changed files with 6566 additions and 2 deletions
+36
View File
@@ -989,6 +989,42 @@ export const en = {
Other: 'files outside the known directories — usually zero',
},
},
telegram: {
title: 'Telegram',
enable: 'Bot enabled',
enabled: 'Enabled',
disabled: 'Disabled',
saved: 'Saved, connection verified',
token: 'Bot token',
tokenKept: 'set — leave as is',
tokenHint: 'Issued by @BotFather. Never returned: only the fact that it is set.',
transport: 'Delivery',
transports: { Polling: 'Polling (getUpdates)', Webhook: 'Webhook' },
transportHint: {
Polling: 'The server pulls updates itself. Works without a public address and via a proxy.',
Webhook:
'Telegram calls your HTTPS endpoint. Needs a public domain; a proxy will not help.',
},
webhookUrl: 'Webhook URL',
webhookHint: 'Full https URL down to /api/telegram/webhook. The secret is generated for you.',
proxy: 'Proxy',
proxies: { None: 'No proxy' },
proxyHint: 'How to reach api.telegram.org.',
proxyHost: 'Host',
proxyPort: 'Port',
proxyUser: 'User',
proxyPassword: 'Password',
lastContact: 'Last contact',
subscribers: 'Subscribers',
noSubscribers: 'Nobody subscribed yet.',
user: 'User',
chat: 'Chat',
channels: 'Channels',
lastSeen: 'Last seen',
stopped: 'stopped',
openChat: 'Open bot chat',
linkFailed: 'Bot is not configured',
},
maintenance: {
title: 'Maintenance',
warning: 'These actions are irreversible — data and files are deleted permanently.',