Skip to content

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

Class: BusinessMessagesDeletedContext<Bot>

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

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

Create new BusinessMessagesDeletedContext

Parameters

ParameterType
optionsBusinessMessagesDeletedContextOptions<Bot>

Returns

BusinessMessagesDeletedContext<Bot>

Overrides

Context.constructor


Constructor

new BusinessMessagesDeletedContext(...args): BusinessMessagesDeletedContext

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

Parameters

ParameterType
...argsany[]

Returns

BusinessMessagesDeletedContext

Overrides

Context<Bot>.constructor

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
botpublicBot-Context.botcontexts/index.d.ts:4726
payloadpublicTelegramBusinessMessagesDeletedThe raw data that is used for this ContextBusinessMessagesDeleted.payloadcontexts/index.d.ts:5333
update?publicTelegramUpdate-Context.updatecontexts/index.d.ts:4728
updateId?publicnumber-Context.updateIdcontexts/index.d.ts:4727
updateTypeprotectedUpdateName-Context.updateTypecontexts/index.d.ts:4729

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string

Inherited from

Context.[toStringTag]


businessConnectionId

Get Signature

get businessConnectionId(): string

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

Unique identifier of the business connection

Returns

string

Inherited from

BusinessMessagesDeleted.businessConnectionId


chat

Get Signature

get chat(): Chat

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

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

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

Parameters

ParameterType
options?BusinessMessagesDeletedContextOptions

Returns

BusinessMessagesDeletedContext

Inherited from

CloneMixin.clone


is()

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

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

Type Parameters

Type Parameter
T extends UpdateName

Parameters

ParameterType
rawTypesMaybeArray<SoftString<T>>

Returns

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

Inherited from

Context.is