Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion notifiers/providers/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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 "
Expand Down
2 changes: 1 addition & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down