Class: TelegramChatbot::NotificationWorker
- Inherits:
-
Object
- Object
- TelegramChatbot::NotificationWorker
- 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(, group_id = nil) return if !(group_id.present? && .present?) Notification.notify(, group_id) end |