Skip to content

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

Class: BusinessMessagesDeletedContext<Bot> ​

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

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:6010

Create new BusinessMessagesDeletedContext

Parameters ​

ParameterType
optionsBusinessMessagesDeletedContextOptions<Bot>

Returns ​

BusinessMessagesDeletedContext<Bot>

Overrides ​

Context.constructor


Constructor ​

new BusinessMessagesDeletedContext(...args): BusinessMessagesDeletedContext

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

Parameters ​

ParameterType
...argsany[]

Returns ​

BusinessMessagesDeletedContext

Overrides ​

Context<Bot>.constructor

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
botpublicBot-Context.botcontexts/index.d.ts:5240
payloadpublicTelegramBusinessMessagesDeletedThe raw data that is used for this ContextBusinessMessagesDeleted.payloadcontexts/index.d.ts:6008
update?publicTelegramUpdate-Context.updatecontexts/index.d.ts:5242
updateId?publicnumber-Context.updateIdcontexts/index.d.ts:5241
updateTypeprotectedUpdateName-Context.updateTypecontexts/index.d.ts:5243

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string

Inherited from ​

Context.[toStringTag]


businessConnectionId ​

Get Signature ​

get businessConnectionId(): string

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

Unique identifier of the business connection

Returns ​

string

Inherited from ​

BusinessMessagesDeleted.businessConnectionId


chat ​

Get Signature ​

get chat(): Chat

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

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:1605

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:5935

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:5249

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