Bugfix: Telegram attachments respect topic thread (#893)

pull/898/head
Chris Caron 1 year ago committed by GitHub
parent ab55aef0d0
commit b6e07dd35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -471,11 +471,14 @@ class NotifyTelegram(NotifyBase):
# content can arrive together.
self.throttle()
payload = {'chat_id': chat_id}
if self.topic:
payload['message_thread_id'] = self.topic
try:
with open(path, 'rb') as f:
# Configure file payload (for upload)
files = {key: (file_name, f)}
payload = {'chat_id': chat_id}
self.logger.debug(
'Telegram attachment POST URL: %s (cert_verify=%r)' % (

Loading…
Cancel
Save