module Telegram::Bot::UpdatesController::TypedUpdate
Include this module to type cast update to Virtus model using `telegram-bot-types` gem (install this gem first).
Public Class Methods
new(bot = nil, update = nil)
click to toggle source
Calls superclass method
# File lib/telegram/bot/updates_controller/typed_update.rb, line 7 def initialize(bot = nil, update = nil) update = Types::Update.new(update) if update && !update.is_a?(Types::Update) super end