Class TelegramAssetsManager
Methods
getAllAssets
- getAllAssets(resource: string): Promise<null | Map<string, string>>
Parameters
Returns Promise<null | Map<string, string>>
getAllFiles
- getAllFiles(): Promise<null | Map<string, string>>
Returns Promise<null | Map<string, string>>
getAssetId
- getAssetId(resource: string, name: string): Promise<undefined | string>
Parameters
resource: string
name: string
Returns Promise<undefined | string>
getFile
- getFile(name: string): Promise<undefined | string>
Parameters
Returns Promise<undefined | string>
saveAssetId
- saveAssetId(resource: string, name: string, id: string): Promise<boolean>
Parameters
resource: string
name: string
id: string
Returns Promise<boolean>
saveFile
- saveFile(name: string, id: string): Promise<boolean>
Parameters
Returns Promise<boolean>
unsaveAssetId
- unsaveAssetId(resource: string, name: string): Promise<boolean>
Parameters
resource: string
name: string
Returns Promise<boolean>
unsaveFile
- unsaveFile(name: string): Promise<boolean>
Parameters
Returns Promise<boolean>
TelegramAssetsManager stores name-to-id mapping for assets created in Telegram platform.