mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 07:39:44 +02:00
Added functionality to send notifications to a specific topic
Co-authored-by: Elllone <elllone@diklosgroup.ru> on-behalf-of: @DiklosGroup <contact@diklosgroup.ru>
This commit is contained in:
parent
4fa62325a2
commit
9cb38c6e30
5 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,11 @@ module.exports = {
|
|||
text: inputs.html,
|
||||
parse_mode: 'HTML',
|
||||
};
|
||||
|
||||
if (sails.config.custom.telegramThreadId) {
|
||||
body.message_thread_id = sails.config.custom.telegramThreadId;
|
||||
}
|
||||
|
||||
let response;
|
||||
try {
|
||||
response = await fetch(POST_MESSAGE_API_URL(sails.config.custom.telegramBotToken), {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue