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