Skip to content

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

Class: Community

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

This object represents a community — several supergroups, channels, and bots linked together around a shared topic or audience.

Documentation

Constructors

Constructor

new Community(payload): Community

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

Parameters

ParameterType
payloadTelegramCommunity

Returns

Community

Properties

PropertyTypeDefined in
payloadTelegramCommunitycontexts/index.d.ts:2565

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


id

Get Signature

get id(): number

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

Unique identifier for this community

Returns

number


name

Get Signature

get name(): string

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

Name of the community

Returns

string