From 6b403a71a36d9418737d9b75d05165ee5c38f6a8 Mon Sep 17 00:00:00 2001 From: fauno Date: Mon, 22 Jun 2020 16:01:54 -0300 Subject: [PATCH] usar HTML para no tener que escapar todos los caracteres https://core.telegram.org/bots/api#formatting-options --- app/jobs/telegram_job.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/telegram_job.rb b/app/jobs/telegram_job.rb index cf0672e..8a6304b 100644 --- a/app/jobs/telegram_job.rb +++ b/app/jobs/telegram_job.rb @@ -13,8 +13,8 @@ class TelegramJob < ApplicationJob piratas.find_each do |pirata| Telegram.bots[:default].send_message chat_id: pirata.telegram_user, - parse_mode: 'MarkdownV2', - text: "*#{payload['subject']}*\n\n#{payload['message']}" + parse_mode: 'HTML', + text: "#{payload['subject']}\n\n#{payload['message']}" end end