Class: TD::Types::MessageEffect

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/message_effect.rb

Overview

Contains information about an effect added to a message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#emojiTD::Types::String

Emoji corresponding to the effect that can be used if static icon isn’t available.

Returns:

  • (TD::Types::String)

    the current value of emoji



9
10
11
# File 'lib/tdlib/types/message_effect.rb', line 9

def emoji
  @emoji
end

#idInteger

Unique identifier of the effect.

Returns:

  • (Integer)

    the current value of id



9
10
11
# File 'lib/tdlib/types/message_effect.rb', line 9

def id
  @id
end

#is_premiumBoolean

True, if Telegram Premium subscription is required to use the effect.

Returns:

  • (Boolean)

    the current value of is_premium



9
10
11
# File 'lib/tdlib/types/message_effect.rb', line 9

def is_premium
  @is_premium
end

#static_iconTD::Types::Sticker?

Static icon for the effect in WEBP format; may be null if none.

Returns:



9
10
11
# File 'lib/tdlib/types/message_effect.rb', line 9

def static_icon
  @static_icon
end

#typeTD::Types::MessageEffectType

Type of the effect.

Returns:



9
10
11
# File 'lib/tdlib/types/message_effect.rb', line 9

def type
  @type
end