Module: TeBot::Cable

Included in:
Court
Defined in:
lib/te_bot/cable.rb

Instance Method Summary collapse

Instance Method Details

#chat_idObject



5
6
7
# File 'lib/te_bot/cable.rb', line 5

def chat_id
  message.data&.chat_id
end

#reply(**payload) ⇒ Object



9
10
11
12
13
# File 'lib/te_bot/cable.rb', line 9

def reply(**payload)
  return if chat_id.nil?

  wire.send_message chat_id, **payload
end