Skip to content

export Class

TopicsManager ​

extends ​

CachedManager<number, ForumTopic>

Constructor ​

ts
 new TopicsManager( chat )
ParameterTypeDescription
chatSuperGroupChat

Properties ​

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

get defaults : Function ​

get isJson : Function ​

get nest : Function ​

readonly chat : SuperGroupChat ​

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

asyncclose( message_thread_id ) ​

ParameterTypeDescription
message_thread_idnumber

Returns: Promise<boolean>

asynccloseGeneral( ) ​

Returns: Promise<boolean>

asynccreate( name, icon_color, icon_custom_emoji_id ) ​

ParameterTypeDescription
namestring
icon_color?number
icon_custom_emoji_id?string

Returns: Promise<boolean | ForumTopic>

asyncdelete( message_thread_id ) ​

ParameterTypeDescription
message_thread_idnumber

Returns: Promise<boolean>

asyncedit( message_thread_id, name, icon_custom_emoji_id ) ​

ParameterTypeDescription
message_thread_idnumber
name?string
icon_custom_emoji_id?string

Returns: Promise<boolean>

asynceditGeneral( name ) ​

ParameterTypeDescription
namestring

Returns: Promise<boolean>

asynchideGeneral( ) ​

Returns: Promise<boolean>

asyncreopen( message_thread_id ) ​

ParameterTypeDescription
message_thread_idnumber

Returns: Promise<boolean>

asyncreopenGeneral( ) ​

Returns: Promise<boolean>

asyncunhideGeneral( ) ​

Returns: Promise<boolean>

asyncunpinAll( message_thread_id ) ​

ParameterTypeDescription
message_thread_idnumber

Returns: Promise<boolean>

asyncunpinAllGeneral( ) ​

Returns: Promise<boolean>

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