Skip to content

Commit

Permalink
add message_thread_id
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimRezvov committed Nov 5, 2023
1 parent 5c4e2f9 commit 18ee4ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/notifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ type TelegramConfig struct {
Message string `yaml:"message,omitempty" json:"message,omitempty"`
DisableNotifications bool `yaml:"disable_notifications,omitempty" json:"disable_notifications,omitempty"`
ParseMode string `yaml:"parse_mode,omitempty" json:"parse_mode,omitempty"`
ReplyToMessageID int64 `yaml:"reply_to_message_id,omitempty" json:"reply_to_message_id,omitempty"`
MessageThreadID int64 `yaml:"message_thread_id,omitempty" json:"message_thread_id,omitempty"`
}

// UnmarshalYAML implements the yaml.Unmarshaler interface.
Expand Down
10 changes: 5 additions & 5 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1120,17 +1120,17 @@ attributes:
# ID of the chat where to send the messages.
[ chat_id: <int> ]

# id of the message in response to which the notification will be sent.
# id of the Telegram group topic.
# Primarily intended for sending notifications to a specific Telegram topic.
# see https://telegram.org/blog/topics-in-groups-collectible-usernames
# To do this, you need to pass the id of the first message in the topic by this parameter.
# In order to find out the id of the first message in a topic, in the Telegram desktop client,
# To do this, you need to pass the id of the topic by this parameter.
# In order to find out the id of the topic, in the Telegram desktop client,
# right-click on the first message in the topic, select "Copy Message Link".
# Get a link like:
# https://t.me/c/1234567890/1234/1235
# The second part of the link is the id of the first message in the topic:
# The second part of the link is the id of the topic:
# 1234
[ reply_to_message_id: <int> ]
[ message_thread_id: <int> ]

# Message template.
[ message: <tmpl_string> default = '{{ template "telegram.default.message" .}}' ]
Expand Down

0 comments on commit 18ee4ae

Please sign in to comment.