Class ChatMemberUpdatedContext

Hierarchy

Constructors

Properties

_client: Evogram
chat: ChatContext = ...

The chat where the update happened.

client: Evogram = ...
date: Date = ...

The date when the update happened.

link: undefined | ChatInviteLinkContext = ...

The invite link used to join the chat.

newChatMember: ChatMemberContext = ...

The chat member after the update.

oldChatMember: ChatMemberContext = ...

The chat member before the update.

user: UserContext = ...

The user who initiated the update.

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