Module: TelegramBot
- Defined in:
- lib/telegram_bot.rb,
lib/telegram_bot/bot.rb,
lib/telegram_bot/user.rb,
lib/telegram_bot/update.rb,
lib/telegram_bot/channel.rb,
lib/telegram_bot/message.rb,
lib/telegram_bot/version.rb,
lib/telegram_bot/keyboard.rb,
lib/telegram_bot/group_chat.rb,
lib/telegram_bot/null_logger.rb,
lib/telegram_bot/out_message.rb,
lib/telegram_bot/api_response.rb,
lib/telegram_bot/force_replay.rb,
lib/telegram_bot/response_error.rb,
lib/telegram_bot/reply_keyboard_hide.rb,
lib/telegram_bot/reply_keyboard_markup.rb
Defined Under Namespace
Classes: ApiResponse, Bot, Channel, ForceReply, GroupChat, Keyboard, Message, NullLogger, OutMessage, ReplyKeyboardHide, ReplyKeyboardMarkup, ResponseError, Update, User
Constant Summary
collapse
- VERSION =
"0.0.8"
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.new(*args) ⇒ Object
22
23
24
|
# File 'lib/telegram_bot.rb', line 22
def self.new(*args)
Bot.new(*args)
end
|
Instance Method Details
#to_h ⇒ Object
17
18
19
20
21
|
# File 'lib/telegram_bot/force_replay.rb', line 17
def to_h
h = {force_reply: true}
h[:selective] = selective unless selective.nil?
h
end
|