Skip to content
Snippets Groups Projects
Commit 5857baf6 authored by Teal's avatar Teal
Browse files

add session link to change notifier

parent 167a987d
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ class TelegramBotSubscriber
end
message = "<b><a href=\"#{conference_session_path(record.conference, record)}\">Session #{record.title}</a> #{action}</b>\n" +
changes.map { |attr, (from, to)| "- #{attr}: #{from} \\-> #{to}" }.join("\n")
changes.map { |attr, (from, to)| "- #{attr}: #{from} -> #{to}" }.join("\n") + "\n#{conference_session_path(record.conference, record)}"
TelegramGroupChatNotificationJob.perform_later(target: "-316096320", text: message, parse_mode: 'HTML')
# TelegramGroupChatNotificationJob.perform_later(target: "2192297", text: message, parse_mode: 'HTML')
......@@ -39,7 +39,7 @@ class TelegramBotSubscriber
session = record.session
message = "<b><a href=\"#{conference_session_path(session.conference, session)}\">Session #{session.title}</a> Speaker Change</b>\n" +
"#{record.speaker.name} #{action == 'destroyed' ? 'removed' : 'added'}"
"#{record.speaker.name} #{action == 'destroyed' ? 'removed' : 'added'}" + "\n#{conference_session_path(session.conference, session)}"
TelegramGroupChatNotificationJob.perform_later(target: "-316096320", text: message, parse_mode: 'HTML')
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment