Skip to content

export Class

PaymentsManager ​

extends ​

CachedManager<number, SuccessfulPayment>

Constructor ​

ts
new PaymentsManager( client )
ParameterTypeDescription
clientClient

Properties ​

get cache : Collection<CachedManager.K, CachedManager.V> ​

readonly client : Client ​

readonly default? : any ​

readonly options : any ​

Methods ​

_add( data, cache, param2 ) ​

Add data with cache check to the current manager.

ParameterTypeDescription
dataanyThe data to add to the cache manager.
cache = truebooleanPass True to cache the data.
param2 = {}anyAdditional data to pass.

Returns: any

asyncrefund( user_id, telegram_payment_charge_id ) ​

ParameterTypeDescription
user_idnumber
telegram_payment_charge_idstring

Returns: Promise<boolean>