Class TdApi.EditChatSubscriptionInviteLink

Enclosing class:
TdApi

public static class TdApi.EditChatSubscriptionInviteLink extends TdApi.Function<TdApi.ChatInviteLink>
Edits a subscription invite link for a channel chat. Requires canInviteUsers right in the chat for own links and owner privileges for other links.

Returns ChatInviteLink

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • name

      public String name
      Invite link name; 0-32 characters.
    • CONSTRUCTOR

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

    • EditChatSubscriptionInviteLink

      public EditChatSubscriptionInviteLink()
      Default constructor for a function, which edits a subscription invite link for a channel chat. Requires canInviteUsers right in the chat for own links and owner privileges for other links.

      Returns ChatInviteLink

    • EditChatSubscriptionInviteLink

      public EditChatSubscriptionInviteLink(long chatId, String inviteLink, String name)
      Creates a function, which edits a subscription invite link for a channel chat. Requires canInviteUsers right in the chat for own links and owner privileges for other links.

      Returns ChatInviteLink

      Parameters:
      chatId - Chat identifier.
      inviteLink - Invite link to be edited.
      name - Invite link name; 0-32 characters.
  • 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