diff --git a/notifiers/providers/telegram.py b/notifiers/providers/telegram.py index c2c8f710..d556bfd7 100644 --- a/notifiers/providers/telegram.py +++ b/notifiers/providers/telegram.py @@ -49,7 +49,7 @@ class Telegram(TelegramMixin, Provider): _resources = {"updates": TelegramUpdates()} - _required = {"required": ["message", "chat_id", "token"]} + _required = {"required": ["message", "chat_id", "token", "message_thread_id"]} _schema = { "type": "object", "properties": { @@ -59,6 +59,10 @@ class Telegram(TelegramMixin, Provider): "maxLength": 4096, }, "token": {"type": "string", "title": "Bot token"}, + "message_thread_id": { + "oneOf": [{"type": "string"}, {"type": "integer"}], + "title": "Thread ID", + }, "chat_id": { "oneOf": [{"type": "string"}, {"type": "integer"}], "title": "Unique identifier for the target chat or username of the target channel " 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.