Module tdlight.api

Class TdApi.SetStickerEmojis

Enclosing class:
TdApi

public static final class TdApi.SetStickerEmojis extends TdApi.Function<TdApi.Ok>
Changes the list of emoji corresponding to a sticker; for bots only. The sticker must belong to a regular or custom emoji sticker set created by the bot.

Returns Ok

  • Field Details

    • sticker

      public TdApi.InputFile sticker
      Sticker.
    • emojis

      public String emojis
      New string with 1-20 emoji corresponding to the sticker.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SetStickerEmojis

      public SetStickerEmojis()
      Changes the list of emoji corresponding to a sticker; for bots only. The sticker must belong to a regular or custom emoji sticker set created by the bot.

      Returns Ok

    • SetStickerEmojis

      public SetStickerEmojis(TdApi.InputFile sticker, String emojis)
      Changes the list of emoji corresponding to a sticker; for bots only. The sticker must belong to a regular or custom emoji sticker set created by the bot.

      Returns Ok

      Parameters:
      sticker - Sticker.
      emojis - New string with 1-20 emoji corresponding to the sticker.

      Returns Ok

    • SetStickerEmojis

      public SetStickerEmojis(DataInput input) throws IOException
      Changes the list of emoji corresponding to a sticker; for bots only. The sticker must belong to a regular or custom emoji sticker set created by the bot.

      Returns Ok

      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object