Sha256: 155b70767bf37bebf812d8c1230295018cc8f7b414f4e37b7e6ba832fa5621e9

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

module TelegramChatbot
  class NotificationWorker
    include Sidekiq::Worker

    def perform(message, groups)
      return unless message.present? && groups.present?

      Notification.notify(message, groups)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
telegram_chatbot-0.1.1 app/workers/telegram_chatbot/notification_worker.rb