mirror of
https://github.com/caronc/apprise.git
synced 2024-11-22 08:04:02 +01:00
better handling of text variable
This commit is contained in:
parent
b2d5c9ae09
commit
6a8099c6f7
@ -373,9 +373,6 @@ class NotifyTelegram(NotifyBase):
|
||||
# HTML
|
||||
body = NotifyBase.escape_html(body, whitespace=False)
|
||||
|
||||
# Assign the body
|
||||
payload['text'] = body
|
||||
|
||||
if title and self.notify_format == NotifyFormat.TEXT:
|
||||
# Text HTML Formatting
|
||||
payload['text'] = '<b>%s</b>\r\n%s' % (
|
||||
@ -391,6 +388,10 @@ class NotifyTelegram(NotifyBase):
|
||||
body,
|
||||
)
|
||||
|
||||
else:
|
||||
# Assign the body
|
||||
payload['text'] = body
|
||||
|
||||
# Create a copy of the chat_ids list
|
||||
chat_ids = list(self.chat_ids)
|
||||
while len(chat_ids):
|
||||
|
Loading…
Reference in New Issue
Block a user