lib/mutx/background_jobs/workers/notificator.rb in mutx-0.2.6 vs lib/mutx/background_jobs/workers/notificator.rb in mutx-0.2.7
- old
+ new
@@ -1,8 +1,6 @@
# encoding: utf-8
-require 'telegramsender'
-
module Mutx
module Workers
class Notificator
include Sidekiq::Worker
@@ -10,10 +8,10 @@
simbolized = args.map { |k, v| [k.to_sym, v] }.to_h
self.send(type.to_sym, destination, **simbolized)
end
def telegram(group_id, message: '')
- TelegramSender.send_message(group_id, message)
+ Support::TelegramSender.send_message(group_id, message)
end
def email(mail_to, subject: '', body: '', attachment: nil)
# TODO
end
\ No newline at end of file