Interface ApplyUnpaidMessagesToken

Allows the current user to send unpaid messages to the given user, who requires payment for incoming messages, using a token from an internal link of the type internalLinkTypePublicChat, internalLinkTypeUserPhoneNumber, or internalLinkTypeUserToken. The first message sent to the user will be preceded by a messageUnpaidMessagesAllowedByLink message. Repeated calls and calls for the current user have no effect. Request type for Tdjson#applyUnpaidMessagesToken.

interface ApplyUnpaidMessagesToken {
    @type: "applyUnpaidMessagesToken";
    token: string;
    user_id: number;
}

Properties

Properties

@type: "applyUnpaidMessagesToken"
token: string

Token from the link.

user_id: number

Identifier of the user.