telegramsjs
    Preparing search index...

    Class ChatInviteLink

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    createsRequest: boolean

    True, if users joining the chat via the link need to be approved by chat administrators

    creator: User

    Creator of the link

    expiredUnixTime?: number

    Point in time (Unix timestamp) when the link will expire or has been expired

    limit?: number

    The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999

    link: string

    The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...".

    name?: string

    Invite link name

    primary: boolean

    True, if the link is primary

    requestsCount?: number

    Number of pending join requests created using this link

    revoked: boolean

    True, if the link is revoked

    subscriptionPeriod?: number

    The number of seconds the subscription will be active for before the next payment

    subscriptionPrice?: number

    The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link

    Accessors

    • get expiredAt(): Date | null

      Point in time when the link will expire or has been expired

      Returns Date | null

    • get expiredTimestamp(): number | null

      Return the timestamp link will expire or has been expired, in milliseconds

      Returns number | null

    Methods

    • Protected

      Creates a clone of the current instance

      Returns Base

      A clone of the current instance

    • Protected

      Patches the current instance with new data

      Parameters

      • data: Record<string, any>

        The data to patch the instance with

      Returns Record<string, any>

      The patched data

    • Protected

      Updates the current instance with new data and returns a clone of the updated instance

      Parameters

      • data: Record<string, any>

        The data to update the instance with

      Returns Base

      A clone of the updated instance

    • Flatten an object. Any properties that are collections will get converted to an array of keys.

      Parameters

      • OptionalpropsRecursive: boolean

        Optional. If true, calls toJSON method on nested objects.

      • ...props: Record<string, string | boolean>[]

        Optional. Specific properties to include/exclude, or rename.

      Returns Record<string, any>

      Flattened object.

    • Returns the id instance Chat, User, ChatMember and other

      Returns string | null