Class: TD::Types::StickerFullType::CustomEmoji

Inherits:
TD::Types::StickerFullType show all
Defined in:
lib/tdlib/types/sticker_full_type/custom_emoji.rb

Overview

The sticker is a custom emoji to be used inside message text and caption. Currently, only Telegram Premium users can use custom emoji.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#custom_emoji_idInteger

Identifier of the custom emoji.

Returns:

  • (Integer)

    the current value of custom_emoji_id



8
9
10
# File 'lib/tdlib/types/sticker_full_type/custom_emoji.rb', line 8

def custom_emoji_id
  @custom_emoji_id
end

#needs_repaintingBoolean

True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places.

Returns:

  • (Boolean)

    the current value of needs_repainting



8
9
10
# File 'lib/tdlib/types/sticker_full_type/custom_emoji.rb', line 8

def needs_repainting
  @needs_repainting
end