mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
[PR #928] [MERGED] Add telegram bot notification integration #1150
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plankanban/planka/pull/928
Author: @Elllone
Created: 10/30/2024
Status: ✅ Merged
Merged: 10/31/2024
Merged by: @meltyshev
Base:
master← Head:telegram-bot-integration📝 Commits (5)
c1c415dAdded variables for TelegramBot integration90a4cf2Added new custom service with telegram integration helper functions38316d7Added notifications about creating, moving, and commenting on the card4fa6232Added notifications about card deletion9cb38c6Added functionality to send notifications to a specific topic📊 Changes
7 files changed (+113 additions, -6 deletions)
View changed files
📝
docker-compose-dev.yml(+9 -5)📝
docker-compose.yml(+5 -1)📝
server/.env.sample(+5 -0)📝
server/api/helpers/actions/create-one.js(+35 -0)📝
server/api/helpers/cards/delete-one.js(+12 -0)➕
server/api/helpers/utils/send-telegram-message.js(+43 -0)📝
server/config/custom.js(+4 -0)📄 Description
Contributions made by @Elllone of DiklosGroup
This PR adds notification integration that will alert a chat, group, or topic in telegram about various actions:

To use it, the user must obtain a bot_token from the bot in telegram, as well as a chat_id. If the user needs to send notifications to a specific topic, they will also need the message_thread_id.
So, copy the bot_token to the
TELEGRAM_BOT_TOKENenvironment variable, the chat_id to theTELEGRAM_CHAT_IDenvironment variable, and, if needed, the message_thread_id to theTELEGRAM_THREAD_IDenvironment variable.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.