Skip to content

Commit

Permalink
#50, #51 Telegram thread id support. Change parameter name from reply…
Browse files Browse the repository at this point in the history
…_to_message_id to message_thread_id.
  • Loading branch information
butorov committed May 6, 2024
1 parent 056166e commit dbc1b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_telegram/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def get_receivers(self, project) -> list[list[str, str]]:
def send_message(self, url, payload, receiver: list[str, str]):
payload['chat_id'] = receiver[0]
if len(receiver) > 1:
payload['reply_to_message_id'] = receiver[1]
payload['message_thread_id'] = receiver[1]
self.logger.debug('Sending message to %s' % receiver)
response = safe_urlopen(
method='POST',
Expand Down

0 comments on commit dbc1b77

Please sign in to comment.