Class TdApi.ToggleChatIsTranslatable

Enclosing class:
TdApi

public static class TdApi.ToggleChatIsTranslatable extends TdApi.Function<TdApi.Ok>
Changes the translatable state of a chat.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • isTranslatable

      public boolean isTranslatable
      New value of isTranslatable.
    • CONSTRUCTOR

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

    • ToggleChatIsTranslatable

      public ToggleChatIsTranslatable()
      Default constructor for a function, which changes the translatable state of a chat.

      Returns Ok

    • ToggleChatIsTranslatable

      public ToggleChatIsTranslatable(long chatId, boolean isTranslatable)
      Creates a function, which changes the translatable state of a chat.

      Returns Ok

      Parameters:
      chatId - Chat identifier.
      isTranslatable - New value of isTranslatable.
  • 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