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):
if data["status"] != "sent":
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
# channel or there was an error with it
......@@ -227,7 +227,7 @@ class PostComponent(botogram.Component):
# If the post should be published now, publish it instantly
if action == "now":
bot.chat(channel).send(
res["updates"][0]["text_formatted"]
res["updates"][0]["text"]
)
else:
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