Sha256: 60d1cb1b7eebf7fbdfa807c0e447ce85c423cfeeafdcf6c91dd74f92ea8a3bd9
Contents?: true
Size: 402 Bytes
Versions: 34
Compression:
Stored size: 402 Bytes
Contents
module Telegram module Bot class UpdatesController # Include this module to type cast update to Virtus model # using `telegram-bot-types` gem (install this gem first). module TypedUpdate def initialize(bot = nil, update = nil) update = Types::Update.new(update) if update && !update.is_a?(Types::Update) super end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems