Class ChatInviteLinkContext

Hierarchy

Constructors

Properties

_client: Evogram
_source: IChatInviteLink & {
    chat_id: string | number;
}
creator: UserContext = ...

The user who created the chat invite link.

expireDate: undefined | Date = ...

The date and time when the chat invite link will expire, or undefined if it does not expire.

Accessors

Methods

  • Converts the source object to a context object of a given type.

    Example

    client.updates.on("message", message => {
    const user = message.user.toContext<CustomUserContext>();
    // Now user works correctly with your context
    })

    Type Parameters

    • TContext extends object

      Generic type parameter for the context object.

    Returns TContext

    The context object.

Generated using TypeDoc