Class: TelegramBotApi::Requests::SetWebhook

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/telegram_bot_api/requests/set_webhook.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Base

included

Constructor Details

#initialize(arguments = {}) ⇒ SetWebhook

Returns a new instance of SetWebhook.



5
6
7
# File 'lib/telegram_bot_api/requests/set_webhook.rb', line 5

def initialize(arguments = {})
  build_arguments(arguments)
end

Class Method Details

.endpoint_urlObject



18
19
20
# File 'lib/telegram_bot_api/requests/set_webhook.rb', line 18

def endpoint_url
  'setWebhook'
end

.mandatory_argumentsObject



10
11
12
# File 'lib/telegram_bot_api/requests/set_webhook.rb', line 10

def mandatory_arguments
  []
end

.optional_argumentsObject



14
15
16
# File 'lib/telegram_bot_api/requests/set_webhook.rb', line 14

def optional_arguments
  %i(url)
end

.verbObject



22
23
24
# File 'lib/telegram_bot_api/requests/set_webhook.rb', line 22

def verb
  :get
end