Skip to content

GramIO API Reference / @gramio/contexts/dist / ManagedBotCreated

Class: ManagedBotCreated ​

Defined in: contexts/index.d.ts:2616

This object contains information about the bot that was created to be managed by the current bot.

Documentation

Constructors ​

Constructor ​

new ManagedBotCreated(payload): ManagedBotCreated

Defined in: contexts/index.d.ts:2618

Parameters ​

ParameterType
payloadTelegramManagedBotCreated

Returns ​

ManagedBotCreated

Properties ​

PropertyTypeDefined in
payloadTelegramManagedBotCreatedcontexts/index.d.ts:2617

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:2620

MDN

Returns ​

string


bot ​

Get Signature ​

get bot(): User

Defined in: contexts/index.d.ts:2624

Information about the bot. The bot's token can be fetched using the method getManagedBotToken.

Returns ​

User