Module: Telegram::Bot
- Defined in:
- lib/telegram/bot.rb,
lib/telegram/bot/api.rb,
lib/telegram/bot/botan.rb,
lib/telegram/bot/login.rb,
lib/telegram/bot/types.rb,
lib/telegram/bot/client.rb,
lib/telegram/bot/exceptions.rb,
lib/telegram/bot/configuration.rb,
lib/telegram/bot/client_accessors.rb
Defined Under Namespace
Modules: ClientAccessors, Types
Classes: Api, Botan, BotanError, Client, Configuration, Error, KeyboardMarkupError, Login, LoginError, ParseError, ResponseError
Constant Summary
collapse
- API_VERSION =
3.5.freeze
- API_URL =
'https://api.telegram.org'.freeze
- PAYLOAD_KEYS =
%w(message edited_message channel_post edited_channel_post).freeze
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
23
24
25
|
# File 'lib/telegram/bot.rb', line 23
def self.configuration
@configuration ||= Configuration.new
end
|
Class Method Details
27
28
29
|
# File 'lib/telegram/bot.rb', line 27
def self.configure
yield(configuration)
end
|