Sha256: 35c330659801fd160e42c127cf9433b3612a8080fe583837084225afc55b48f5
Contents?: true
Size: 742 Bytes
Versions: 6
Compression:
Stored size: 742 Bytes
Contents
# frozen_string_literal: true require 'eac_cli/core_ext' require 'ehbrs/telegram/message_sending' module Ehbrs module Tools class Runner class Telegram class SendMessage runner_with :help do desc 'Envia mensagens Telegram.' pos_arg :message pos_arg :recipients_ids, repeat: true end delegate :run, to: :message_sending private def message_sending_uncached parsed.recipients_ids .inject(::Ehbrs::Telegram::MessageSending.new) { |a, e| a.recipient_id(e) } .bot_token(runner_context.call(:bot_token)) .message(parsed.message) end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems