Class: TARS::API
Class Method Summary collapse
Class Method Details
.me ⇒ Object
9 10 11 |
# File 'lib/tars/api.rb', line 9 def self.me request 'getMe' end |
.reply_to(chat_id, text) ⇒ Object
21 22 23 |
# File 'lib/tars/api.rb', line 21 def self.reply_to(chat_id, text) request 'sendMessage', chat_id: chat_id, text: text end |
.updates ⇒ Object
13 14 15 |
# File 'lib/tars/api.rb', line 13 def self.updates request 'getUpdates' end |
.webhook ⇒ Object
17 18 19 |
# File 'lib/tars/api.rb', line 17 def self.webhook request 'setWebhook', url: URI(TARS.config.webhook) end |