class Botomizer::Telegram::Webhook

Public Class Methods

new(client) click to toggle source
# File lib/botomizer/telegram/webhook.rb, line 2
def initialize(client)
  @client = client
end

Public Instance Methods

delete() click to toggle source
# File lib/botomizer/telegram/webhook.rb, line 18
def delete
  @client.send('deleteWebhook')
end
delete!() click to toggle source
# File lib/botomizer/telegram/webhook.rb, line 22
def delete!
  @client.send!('deleteWebhook')
end
info() click to toggle source
# File lib/botomizer/telegram/webhook.rb, line 14
def info
  @client.send('getWebhookInfo')
end
set(url) click to toggle source
# File lib/botomizer/telegram/webhook.rb, line 6
def set(url)
  @client.send('setWebhook', {url: url})
end
set!(url) click to toggle source
# File lib/botomizer/telegram/webhook.rb, line 10
def set!(url)
  @client.send!('setWebhook', {url: url})
end