Class PreCheckoutQueryContext

Hierarchy

Constructors

Properties

_client: Evogram
client: Evogram = ...
orderInfo: undefined | OrderInfoContext = ...

Returns an OrderInfoContext object that represents the order information associated with the pre-checkout query. If the order_info property of the source property is not defined, returns undefined.

user: UserContext = ...

Returns a UserContext object that represents the user who initiated the pre-checkout query.

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