atipugin/telegram-bot-ruby

View on GitHub
lib/telegram/bot/types/message_entity.rb

Summary

Maintainability
A
25 mins
Test Coverage
# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class MessageEntity < Base
        attribute :type, Types::String
        attribute :offset, Types::Integer
        attribute :length, Types::Integer
        attribute? :url, Types::String
        attribute? :user, User
        attribute? :language, Types::String
        attribute? :custom_emoji_id, Types::String
      end
    end
  end
end