mayoral/telegrammer

View on GitHub
lib/telegrammer/data_types/sticker.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Telegrammer
  module DataTypes
    # Telegram Sticker data type.
    #
    # @attr [String] file_id Unique identifier for this file
    # @attr [Integer] width Sticker width
    # @attr [Integer] height Sticker height
    # @attr [Telegrammer::DataTypes::PhotoSize] thumb Optional. Sticker thumbnail in .webp or .jpg format
    # @attr [String] emoji Optional. Emoji associated with the sticker
    # @attr [Integer] file_id Optional. File size
    #
    # See more at https://core.telegram.org/bots/api#sticker
    class Sticker < Telegrammer::DataTypes::Base
      attribute :file_id, String
      attribute :width, Integer
      attribute :height, Integer
      attribute :thumb, PhotoSize
      attribute :emoji, String
      attribute :file_size, Integer
    end
  end
end