Module tdlight.api

Class TdApi.SetChatTitle

Enclosing class:
TdApi

public static final class TdApi.SetChatTitle extends TdApi.Function<TdApi.Ok>
Changes the chat title. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • title

      public String title
      New title of the chat; 1-128 characters.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SetChatTitle

      public SetChatTitle()
      Changes the chat title. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.

      Returns Ok

    • SetChatTitle

      public SetChatTitle(long chatId, String title)
      Changes the chat title. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.

      Returns Ok

      Parameters:
      chatId - long Chat identifier.
      title - String New title of the chat; 1-128 characters.
    • SetChatTitle

      public SetChatTitle(DataInput input) throws IOException
      Changes the chat title. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.

      Returns Ok

      Throws:
      IOException
  • Method Details