ApplyUnpaidMessagesToken constructor

const ApplyUnpaidMessagesToken({
  1. required int userId,
  2. required String token,
})

Allows the current user to send unpaid messages to the given user, which 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

Implementation

const ApplyUnpaidMessagesToken({required this.userId, required this.token});