usar HTML para no tener que escapar todos los caracteres
https://core.telegram.org/bots/api#formatting-options
This commit is contained in:
parent
aa3d957250
commit
6b403a71a3
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ class TelegramJob < ApplicationJob
|
||||||
|
|
||||||
piratas.find_each do |pirata|
|
piratas.find_each do |pirata|
|
||||||
Telegram.bots[:default].send_message chat_id: pirata.telegram_user,
|
Telegram.bots[:default].send_message chat_id: pirata.telegram_user,
|
||||||
parse_mode: 'MarkdownV2',
|
parse_mode: 'HTML',
|
||||||
text: "*#{payload['subject']}*\n\n#{payload['message']}"
|
text: "<b>#{payload['subject']}</b>\n\n#{payload['message']}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue