Raw.BotInfo
Info about bots (available bot commands, etc)
botInfo#4d8a0299 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 privacy_policy_url:flags.7?string app_settings:flags.8?BotAppSettings verifier_settings:flags.9?BotVerifierSettings = 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;
privacyPolicyUrl?: string;
appSettings?: Raw.TypeBotAppSettings;
verifierSettings?: Raw.TypeBotVerifierSettings;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 198
Constructor ID: 0x4d8a0299
Property
hasPreviewMedias
: boolean or undefinedIf set, the bot has some preview medias for the configured main mini app, see here for more info on main mini app preview medias.
userId
: 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
privacyPolicyUrl
: string or undefinedThe http link to the privacy policy of the bot. if not set, then the /privacy command must be used, if supported by the bot (i.e. if it’s present in the commands vector). if it isn’t supported, then https://telegram.org/privacy-tpa must be opened, instead.
appSettings
: Raw.TypeBotAppSettings or undefinedMini app settings
verifierSettings
: Raw.TypeBotVerifierSettings or undefined