Class: Ehbrs::Tools::Runner::Telegram

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs/tools/runner/telegram.rb,
lib/ehbrs/tools/runner/telegram/send_message.rb

Defined Under Namespace

Classes: SendMessage

Instance Method Summary collapse

Instance Method Details

#bot_tokenObject



18
19
20
# File 'lib/ehbrs/tools/runner/telegram.rb', line 18

def bot_token
  parsed.bot_token || default_bot_token
end

#default_bot_tokenObject



22
23
24
# File 'lib/ehbrs/tools/runner/telegram.rb', line 22

def default_bot_token
  ::Ehbrs::Tools.instance.read_entry(:telegram_bot_token)
end