Raw.BotInfo
Info about bots (available bot commands, etc)
botInfo#8f300b57 flags:# has_preview_medias:flags.6?true user_id:flags.0?long description:flags.1?string description_photo:flags.4?Photo description_document:flags.5?Document commands:flags.2?Vector<BotCommand> menu_button:flags.3?BotMenuButton = BotInfo;
export namespace Raw {
export class BotInfo {
constructor(params: {
hasPreviewMedias?: boolean;
userId?: bigint;
description?: string;
descriptionPhoto?: Raw.TypePhoto;
descriptionDocument?: Raw.TypeDocument;
commands?: Array<Raw.TypeBotCommand>;
menuButton?: Raw.TypeBotMenuButton;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x8f300b57
Property
hasPreviewMedias
: boolean or undefineduserId
: bigint or undefinedId of the bot
description
: string or undefinedDescription of the bot
descriptionPhoto
: Raw.TypePhoto or undefinedDescription photo
descriptionDocument
: Raw.TypeDocument or undefinedDescription animation in mpeg4 format
commands
: Array of Raw.TypeBotCommand or undefinedBot commands that can be used in the chat
menuButton
: Raw.TypeBotMenuButton or undefinedIndicates the action to execute when pressing the in-ui menu button for bots