Class: Viberroo::Bot
Instance Method Summary collapse
-
#initialize(token:, response: {}) ⇒ Bot
constructor
A new instance of Bot.
- #set_webhook(params) ⇒ Object
Methods included from Message
#send_location, #send_message, #send_rich_media
Constructor Details
Instance Method Details
#set_webhook(params) ⇒ Object
12 13 14 |
# File 'lib/bot.rb', line 12 def set_webhook(params) Faraday.post(@webhook_url, params.to_json, @header) end |