Module: Telegram::Bot
- Defined in:
- lib/telegram/bot.rb,
lib/telegram/bot/api.rb,
lib/telegram/bot/botan.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, Exceptions, Types
Classes: Api, Botan, Client, Configuration
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
22
23
24
|
# File 'lib/telegram/bot.rb', line 22
def self.configuration
@configuration ||= Configuration.new
end
|
Class Method Details
26
27
28
|
# File 'lib/telegram/bot.rb', line 26
def self.configure
yield(configuration)
end
|