Skip to content

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

Class: ChatOwnerLeft ​

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

Describes a service message about the chat owner leaving the chat.

Documentation

Constructors ​

Constructor ​

new ChatOwnerLeft(payload): ChatOwnerLeft

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

Parameters ​

ParameterType
payloadTelegramChatOwnerLeft

Returns ​

ChatOwnerLeft

Properties ​

PropertyTypeDefined in
payloadTelegramChatOwnerLeftcontexts/index.d.ts:1716

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


newOwner ​

Get Signature ​

get newOwner(): User

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

Optional. The user which will be the new owner of the chat if the previous owner does not return to the chat

Returns ​

User