Skip to content

export Class

ChatInviteLinksManager ​

extends ​

CachedManager<string, ChatInviteLink>

Constructor ​

ts
 new ChatInviteLinksManager( chat )
ParameterTypeDescription
chatSuperGroupChat | GroupChat | ChannelChat

Properties ​

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

get defaults : Function ​

get isJson : Function ​

get nest : Function ​

chat : SuperGroupChat | GroupChat | ChannelChat ​

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

asynccreate( payload ) ​

ParameterTypeDescription
payloadChatInviteLinkCreatePayload

Returns: Promise<boolean | ChatInviteLink>

asynccreateSubscription( payload ) ​

ParameterTypeDescription
payloadChatInviteLinkSubscriptionPayload

Returns: Promise<boolean | ChatInviteLink>

asyncedit( payload ) ​

ParameterTypeDescription
payloadChatInviteLinkEditPayload

Returns: Promise<boolean | ChatInviteLink>

asynceditSubscription( payload ) ​

ParameterTypeDescription
payloadChatInviteLinkSubscriptionEditPayload

Returns: Promise<boolean | ChatInviteLink>

asyncexport( ) ​

Returns: Promise<boolean | ChatInviteLink>

ParameterTypeDescription
invite_linkstring

Returns: Promise<boolean | ChatInviteLink>

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