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.
Constructors
Constructor
new Community(
payload):Community
Defined in: contexts/index.d.ts:2566
Parameters
| Parameter | Type |
|---|---|
payload | TelegramCommunity |
Returns
Community
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramCommunity | contexts/index.d.ts:2565 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2568
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