Skip to content
Snippets Groups Projects
Commit 7fbfd50d authored by Teal's avatar Teal
Browse files

target teal for dev env

parent 615c8c53
Branches
Tags
No related merge requests found
......@@ -8,6 +8,7 @@ class TelegramGroupChatNotificationJob < NotificationJob
return unless channel&.data
token = channel.data['token']
return unless token
args[:target] = "2192297" if Rails.env.development?
Telegram::Bot::Client.run(token) do |bot|
bot.api.send_message(chat_id: args[:target], text: args[:text], parse_mode: args[:parse_mode])
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment