[PR #5190] [MERGED] Telegram bot connector #5344

Closed
opened 2026-06-05 15:21:02 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5190
Author: @shatfield4
Created: 3/10/2026
Status: Merged
Merged: 3/23/2026
Merged by: @timothycarambat

Base: masterHead: 5189-feat-telegram-connection-remote-control


📝 Commits (10+)

  • 248ec3c wip telegram bot connector
  • 3f3fa7f encrypt bot token, reorg telegram bot modules, secure pairing codes
  • 5519c52 offload telegram chat to background worker, add @agent support with chart png rendering, reconnect ui
  • 65023e8 refactor telegram bot settings page into subcomponents
  • bbdec2e response.locals for mum, telemetry for connecting to telegram
  • 19c252a simplify telegram command registration
  • dd61d7c Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 5189-feat-telegram-connection-remote-control
  • 9c90900 improve telegram bot ux: rework switch/history/resume commands
  • 9ce4f76 add voice, photo, and TTS support to telegram bot with long message handling
  • ce4e1fc lint

📊 Changes

84 files changed (+8209 additions, -243 deletions)

View changed files

📝 collector/utils/constants.js (+10 -0)
📝 frontend/src/components/SettingsSidebar/index.jsx (+14 -0)
📝 frontend/src/hooks/useScrollActiveItemIntoView.js (+1 -1)
📝 frontend/src/locales/ar/common.js (+80 -9)
📝 frontend/src/locales/cs/common.js (+84 -10)
📝 frontend/src/locales/da/common.js (+84 -9)
📝 frontend/src/locales/de/common.js (+91 -9)
📝 frontend/src/locales/en/common.js (+79 -9)
📝 frontend/src/locales/es/common.js (+86 -9)
📝 frontend/src/locales/et/common.js (+82 -9)
📝 frontend/src/locales/fa/common.js (+82 -9)
📝 frontend/src/locales/findUnusedTranslations.mjs (+11 -1)
📝 frontend/src/locales/fr/common.js (+85 -10)
📝 frontend/src/locales/he/common.js (+78 -10)
📝 frontend/src/locales/it/common.js (+85 -10)
📝 frontend/src/locales/ja/common.js (+81 -9)
📝 frontend/src/locales/ko/common.js (+80 -9)
📝 frontend/src/locales/lt/common.js (+84 -9)
📝 frontend/src/locales/lv/common.js (+84 -10)
📝 frontend/src/locales/nl/common.js (+86 -9)

...and 64 more files

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #5189

Description

  • Add telegram bot integration as a new page under "Channels" -> "Telegram"
  • Add QR code to take user to BotFather to create new bot
  • User verification system with pairing codes
  • Voice message support with multiple response modes (text only, mirror, always voice) hidden for now
  • Photo/media handling for Telegram chats
  • Chat workspace and thread switching via Telegram slash commands (/switch, /history)
  • Model change support in chat
  • Auto chat mode support and native tool calling
  • @agent support with custom PNG chart renderer for telegram
  • Bot token encryption
  • Offloads Telegram chat processing to background worker jobs
  • Kills Telegram bot on enabling of multiuser mode (Telegram bot only active in single user/single user password protected modes)
  • Reconnect UI if token expires or becomes invalid
  • Rendering of rich text responses for markdown elements
  • handling of think blocks and split-block handling
  • Full user GUI for management of connection and approved users

Telegram Commands

  • /start - Welcome message with current workspace info
  • /switch - Switch workspace or thread
  • /new - Start a new thread in the current workspace
  • /history [count] - Show recent messages (default 10, max 50)
  • /status - Show current workspace, thread, provider, and model
  • /reset - Clear chat history context for the LLM (messages stay visible but aren't used as context)
  • /proof - show citations from previous chat
  • /model - select from model list to change mid chat
  • /help - Show available commands

Visuals (if applicable)

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/5190 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 3/10/2026 **Status:** ✅ Merged **Merged:** 3/23/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `5189-feat-telegram-connection-remote-control` --- ### 📝 Commits (10+) - [`248ec3c`](https://github.com/Mintplex-Labs/anything-llm/commit/248ec3cc0ae897374e1546d80c2d9faa138f25f6) wip telegram bot connector - [`3f3fa7f`](https://github.com/Mintplex-Labs/anything-llm/commit/3f3fa7f94ecb3f15c3c9ef7655278d62f0bc234d) encrypt bot token, reorg telegram bot modules, secure pairing codes - [`5519c52`](https://github.com/Mintplex-Labs/anything-llm/commit/5519c5264ed18997caaba8b34c9cc0c53c756343) offload telegram chat to background worker, add @agent support with chart png rendering, reconnect ui - [`65023e8`](https://github.com/Mintplex-Labs/anything-llm/commit/65023e84544e7574055ddd1565d464603799b7f3) refactor telegram bot settings page into subcomponents - [`bbdec2e`](https://github.com/Mintplex-Labs/anything-llm/commit/bbdec2eb04d645c7e06e2fd7054a1f10562ec9f7) response.locals for mum, telemetry for connecting to telegram - [`19c252a`](https://github.com/Mintplex-Labs/anything-llm/commit/19c252adb1e16a903d95947bc26a9822b065c4e7) simplify telegram command registration - [`dd61d7c`](https://github.com/Mintplex-Labs/anything-llm/commit/dd61d7c240471c73ca7facb9f2b8da57cf487b71) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 5189-feat-telegram-connection-remote-control - [`9c90900`](https://github.com/Mintplex-Labs/anything-llm/commit/9c9090028c00f81ddddb2cce51b7d268b3aaa79c) improve telegram bot ux: rework switch/history/resume commands - [`9ce4f76`](https://github.com/Mintplex-Labs/anything-llm/commit/9ce4f76de84ec04e0cc6a76e27e3b6e22cf459d6) add voice, photo, and TTS support to telegram bot with long message handling - [`ce4e1fc`](https://github.com/Mintplex-Labs/anything-llm/commit/ce4e1fca596c43ab7214d8979c734a230b592019) lint ### 📊 Changes **84 files changed** (+8209 additions, -243 deletions) <details> <summary>View changed files</summary> 📝 `collector/utils/constants.js` (+10 -0) 📝 `frontend/src/components/SettingsSidebar/index.jsx` (+14 -0) 📝 `frontend/src/hooks/useScrollActiveItemIntoView.js` (+1 -1) 📝 `frontend/src/locales/ar/common.js` (+80 -9) 📝 `frontend/src/locales/cs/common.js` (+84 -10) 📝 `frontend/src/locales/da/common.js` (+84 -9) 📝 `frontend/src/locales/de/common.js` (+91 -9) 📝 `frontend/src/locales/en/common.js` (+79 -9) 📝 `frontend/src/locales/es/common.js` (+86 -9) 📝 `frontend/src/locales/et/common.js` (+82 -9) 📝 `frontend/src/locales/fa/common.js` (+82 -9) 📝 `frontend/src/locales/findUnusedTranslations.mjs` (+11 -1) 📝 `frontend/src/locales/fr/common.js` (+85 -10) 📝 `frontend/src/locales/he/common.js` (+78 -10) 📝 `frontend/src/locales/it/common.js` (+85 -10) 📝 `frontend/src/locales/ja/common.js` (+81 -9) 📝 `frontend/src/locales/ko/common.js` (+80 -9) 📝 `frontend/src/locales/lt/common.js` (+84 -9) 📝 `frontend/src/locales/lv/common.js` (+84 -10) 📝 `frontend/src/locales/nl/common.js` (+86 -9) _...and 64 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat (New feature) - [ ] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #5189 ### Description <!-- Describe the changes in this PR that are impactful to the repo. What problem does it solve? --> - Add telegram bot integration as a new page under "Channels" -> "Telegram" - Add QR code to take user to BotFather to create new bot - User verification system with pairing codes - Voice message support with multiple response modes (text only, mirror, always voice) *hidden for now* - Photo/media handling for Telegram chats - Chat workspace and thread switching via Telegram slash commands (/switch, /history) - Model change support in chat - `Auto` chat mode support and native tool calling - @agent support with custom PNG chart renderer for telegram - Bot token encryption - Offloads Telegram chat processing to background worker jobs - Kills Telegram bot on enabling of multiuser mode (Telegram bot only active in single user/single user password protected modes) - Reconnect UI if token expires or becomes invalid - Rendering of rich text responses for markdown elements - handling of `think` blocks and split-block handling - Full user GUI for management of connection and approved users ### Telegram Commands - /start - Welcome message with current workspace info - /switch - Switch workspace or thread - /new - Start a new thread in the current workspace - /history [count] - Show recent messages (default 10, max 50) - /status - Show current workspace, thread, provider, and model - /reset - Clear chat history context for the LLM (messages stay visible but aren't used as context) - /proof - show citations from previous chat - /model - select from model list to change mid chat - /help - Show available commands ### Visuals (if applicable) <!-- Add screenshots or screen recordings to demonstrate the changes, especially for UI updates. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated (if applicable) - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:02 -04:00
yindo closed this issue 2026-06-05 15:21:02 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5344