Class: TelegramChatbot::NotificationWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/telegram_chatbot/notification_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(message, group_id = nil) ⇒ Object



7
8
9
10
11
# File 'app/workers/telegram_chatbot/notification_worker.rb', line 7

def perform(message, group_id = nil)
  return if !(group_id.present? && message.present?)

  Notification.notify(message, group_id)
end