Skip to content

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

Class: ChatLocation

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

Represents a location to which a chat is connected.

Constructors

Constructor

new ChatLocation(payload): ChatLocation

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

Parameters

ParameterType
payloadTelegramChatLocation

Returns

ChatLocation

Properties

PropertyTypeDefined in
payloadTelegramChatLocationcontexts/index.d.ts:3378

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


address

Get Signature

get address(): string

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

Location address; 1-64 characters, as defined by the chat owner

Returns

string


location

Get Signature

get location(): Location

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

The location to which the supergroup is connected. Can't be a live location.

Returns

Location