Class: TelegramBotApi::Client
- Inherits:
-
Object
- Object
- TelegramBotApi::Client
- Defined in:
- lib/telegram_bot_api/client.rb
Constant Summary collapse
- TELEGRAM_API_ENDPOINT =
"https://api.telegram.org"
Class Method Summary collapse
Class Method Details
.execute(request) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/telegram_bot_api/client.rb', line 5 def self.execute(request) unless request.valid? raise(ArgumentError, request.errors) end HttpClient.make_request(verb: request.verb, url: request_url(request), params: request.to_json) end |