Skip to content

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

Class: BusinessMessagesDeletedContext<Bot>

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

This object represents a boost added to a chat or changed.

Extends

Type Parameters

Type Parameter
Bot extends BotLike

Constructors

Constructor

new BusinessMessagesDeletedContext<Bot>(options): BusinessMessagesDeletedContext<Bot>

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

Create new BusinessMessagesDeletedContext

Parameters

ParameterType
optionsBusinessMessagesDeletedContextOptions<Bot>

Returns

BusinessMessagesDeletedContext<Bot>

Overrides

Context.constructor


Constructor

new BusinessMessagesDeletedContext(...args): BusinessMessagesDeletedContext

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

Parameters

ParameterType
...argsany[]

Returns

BusinessMessagesDeletedContext

Overrides

Context<Bot>.constructor

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
botpublicBot-Context.botcontexts/index.d.ts:4856
payloadpublicTelegramBusinessMessagesDeletedThe raw data that is used for this ContextBusinessMessagesDeleted.payloadcontexts/index.d.ts:5467
update?publicTelegramUpdate-Context.updatecontexts/index.d.ts:4858
updateId?publicnumber-Context.updateIdcontexts/index.d.ts:4857
updateTypeprotectedUpdateName-Context.updateTypecontexts/index.d.ts:4859

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string

Inherited from

Context.[toStringTag]


businessConnectionId

Get Signature

get businessConnectionId(): string

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

Unique identifier of the business connection

Returns

string

Inherited from

BusinessMessagesDeleted.businessConnectionId


chat

Get Signature

get chat(): Chat

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

Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.

Returns

Chat

Inherited from

BusinessMessagesDeleted.chat


messageIds

Get Signature

get messageIds(): number[]

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

A list of identifiers of deleted messages in the chat of the business account

Returns

number[]

Inherited from

BusinessMessagesDeleted.messageIds

Methods

clone()

clone(options?): BusinessMessagesDeletedContext

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

Parameters

ParameterType
options?BusinessMessagesDeletedContextOptions

Returns

BusinessMessagesDeletedContext

Inherited from

CloneMixin.clone


is()

is<T>(rawTypes): this is InstanceType<ContextsMapping<Bot>[T]> & GetDerives<Bot, T> & (IsAny<Bot["__Derives"]> extends true ? {} : Bot["__Derives"] extends {} ? Bot["__Derives"]["global"] & Bot["__Derives"][T] : {})

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

Type Parameters

Type Parameter
T extends UpdateName

Parameters

ParameterType
rawTypesMaybeArray<SoftString<T>>

Returns

this is InstanceType<ContextsMapping<Bot>[T]> & GetDerives<Bot, T> & (IsAny<Bot["__Derives"]> extends true ? {} : Bot["__Derives"] extends {} ? Bot["__Derives"]["global"] & Bot["__Derives"][T] : {})

Inherited from

Context.is