From a5b3021900f456aab049835394573e88714bd9d3 Mon Sep 17 00:00:00 2001 From: thaidv96 Date: Sat, 27 Jan 2024 10:29:18 +0700 Subject: [PATCH 1/2] Add message_thread_id to telegram notification params Help to send message to specific topic inside a telegram supergroup --- notifiers/providers/telegram.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notifiers/providers/telegram.py b/notifiers/providers/telegram.py index c2c8f710..896edbc8 100644 --- a/notifiers/providers/telegram.py +++ b/notifiers/providers/telegram.py @@ -64,6 +64,11 @@ class Telegram(TelegramMixin, Provider): "title": "Unique identifier for the target chat or username of the target channel " "(in the format @channelusername)", }, + "message_thread_id": { + "type": "string", + "title": "Use in case routing message into specific topic inside a supergroup", + }, + "parse_mode": { "type": "string", "title": "Send Markdown or HTML, if you want Telegram apps to show bold, italic," From 2d6775cfc6e0cb4a484441c3fcef75aed8663ff3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 27 Jan 2024 03:32:35 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- notifiers/providers/telegram.py | 1 - source/conf.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/notifiers/providers/telegram.py b/notifiers/providers/telegram.py index 896edbc8..125314de 100644 --- a/notifiers/providers/telegram.py +++ b/notifiers/providers/telegram.py @@ -68,7 +68,6 @@ class Telegram(TelegramMixin, Provider): "type": "string", "title": "Use in case routing message into specific topic inside a supergroup", }, - "parse_mode": { "type": "string", "title": "Send Markdown or HTML, if you want Telegram apps to show bold, italic," diff --git a/source/conf.py b/source/conf.py index 6f39d52c..ec3e4771 100644 --- a/source/conf.py +++ b/source/conf.py @@ -76,7 +76,7 @@ # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = 'en' +language = "en" # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.