Class: SpreeCmCommissioner::TelegramStartMessageSenderJob
- Inherits:
-
ApplicationUniqueJob
- Object
- ActiveJob::Base
- ApplicationUniqueJob
- ApplicationUniqueJob
- SpreeCmCommissioner::TelegramStartMessageSenderJob
- Defined in:
- app/jobs/spree_cm_commissioner/telegram_start_message_sender_job.rb
Instance Method Summary collapse
-
#perform(options) ⇒ Object
:chat_id, :telegram_bot_id.
Instance Method Details
#perform(options) ⇒ Object
:chat_id, :telegram_bot_id
6 7 8 9 10 11 12 |
# File 'app/jobs/spree_cm_commissioner/telegram_start_message_sender_job.rb', line 6 def perform() telegram_bot = SpreeCmCommissioner::TelegramBot.find([:telegram_bot_id]) TelegramStartMessageSender.call( chat_id: [:chat_id], telegram_bot: telegram_bot ) end |