Class: TelegramBotApi::Requests::SetWebhook
- Inherits:
-
Object
- Object
- TelegramBotApi::Requests::SetWebhook
- Includes:
- Base
- Defined in:
- lib/telegram_bot_api/requests/set_webhook.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arguments = {}) ⇒ SetWebhook
constructor
A new instance of SetWebhook.
Methods included from Base
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_url ⇒ Object
18 19 20 |
# File 'lib/telegram_bot_api/requests/set_webhook.rb', line 18 def endpoint_url 'setWebhook' end |
.mandatory_arguments ⇒ Object
10 11 12 |
# File 'lib/telegram_bot_api/requests/set_webhook.rb', line 10 def mandatory_arguments [] end |
.optional_arguments ⇒ Object
14 15 16 |
# File 'lib/telegram_bot_api/requests/set_webhook.rb', line 14 def optional_arguments %i(url) end |
.verb ⇒ Object
22 23 24 |
# File 'lib/telegram_bot_api/requests/set_webhook.rb', line 22 def verb :get end |