Skip to content

export Class

ChatRequestsManager ​

extends ​

CachedManager<string, ChatJoinRequest>

Constructor ​

ts
 new ChatRequestsManager( chat )
ParameterTypeDescription
chatBaseGroupChat

Properties ​

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

get defaults : Function ​

get isJson : Function ​

get nest : Function ​

chat : BaseGroupChat ​

readonly client : Client ​

readonly default? : any ​

readonly options : any ​

Methods ​

_add( data, cache, param2 ) ​

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

Add data with cache check to the current manager.

Returns: any

asyncapprove( user_id ) ​

ParameterTypeDescription
user_idnumber

Returns: Promise<boolean>

asyncdecline( user_id ) ​

ParameterTypeDescription
user_idnumber

Returns: Promise<boolean>

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.