class Telegrambot::Client
Attributes
api[R]
Public Class Methods
new(token)
click to toggle source
# File lib/telegrambot/client.rb, line 5 def initialize(token) @api = Api.new(token) end
Public Instance Methods
listen_webhook(data)
click to toggle source
Escucha Webhooks @return [Telegrambot::Types::Update] @param update [Hash]
# File lib/telegrambot/client.rb, line 12 def listen_webhook(data) update = Telegrambot::Types::Update.new(data) end