Commit 1d3f210d authored by Pietro Albini's avatar Pietro Albini

Don't send formatted text to Telegram

parent 41e5bc57
...@@ -85,7 +85,7 @@ class PostComponent(botogram.Component): ...@@ -85,7 +85,7 @@ class PostComponent(botogram.Component):
if data["status"] != "sent": if data["status"] != "sent":
continue continue
bot.chat(channel).send(data["text_formatted"]) bot.chat(channel).send(data["text"])
# This will delete the update if the message was sent to the # This will delete the update if the message was sent to the
# channel or there was an error with it # channel or there was an error with it
...@@ -227,7 +227,7 @@ class PostComponent(botogram.Component): ...@@ -227,7 +227,7 @@ class PostComponent(botogram.Component):
# If the post should be published now, publish it instantly # If the post should be published now, publish it instantly
if action == "now": if action == "now":
bot.chat(channel).send( bot.chat(channel).send(
res["updates"][0]["text_formatted"] res["updates"][0]["text"]
) )
else: else:
post_id = res["updates"][0]["id"] post_id = res["updates"][0]["id"]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment