Skip to content

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

Class: ChatFullInfo

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

This object contains full information about a chat.

Documentation

Constructors

Constructor

new ChatFullInfo(payload): ChatFullInfo

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

Parameters

ParameterType
payloadTelegramChatFullInfo

Returns

ChatFullInfo

Properties

PropertyTypeDefined in
payloadTelegramChatFullInfocontexts/index.d.ts:3522

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


accentColorId

Get Signature

get accentColorId(): number

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

Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.

Returns

number


acceptedGiftTypes

Get Signature

get acceptedGiftTypes(): AcceptedGiftTypes

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

Returns

AcceptedGiftTypes


activeUsernames

Get Signature

get activeUsernames(): string[]

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

Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels

Returns

string[]


availableReactions

Get Signature

get availableReactions(): TelegramReactionType[]

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

Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.

Returns

TelegramReactionType[]


backgroundCustomEmojiId

Get Signature

get backgroundCustomEmojiId(): string

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

Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background

Returns

string


bio

Get Signature

get bio(): string

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

Optional. Bio of the other party in a private chat

Returns

string


birthdate

Get Signature

get birthdate(): Birthdate

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

Optional. For private chats, the date of birth of the user

Returns

Birthdate


businessIntro

Get Signature

get businessIntro(): BusinessIntro

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

Optional. For private chats with business accounts, the intro of the business

Returns

BusinessIntro


businessLocation

Get Signature

get businessLocation(): BusinessLocation

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

Optional. For private chats with business accounts, the location of the business

Returns

BusinessLocation


businessOpeningHours

Get Signature

get businessOpeningHours(): BusinessOpeningHours

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

Optional. For private chats with business accounts, the opening hours of the business

Returns

BusinessOpeningHours


canSendGift

Get Signature

get canSendGift(): boolean

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

Returns

boolean


canSendPaidMedia

Get Signature

get canSendPaidMedia(): true

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

Optional. True, if the bot can change the group sticker set

Returns

true


canSetStickerSet

Get Signature

get canSetStickerSet(): true

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

Optional. True, if the bot can change the group sticker set

Returns

true


customEmojiStickerSetName

Get Signature

get customEmojiStickerSetName(): string

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

Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.

Returns

string


description

Get Signature

get description(): string

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

Optional. Description, for groups, supergroups and channel chats

Returns

string


emojiStatusCustomEmojiId

Get Signature

get emojiStatusCustomEmojiId(): string

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

Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat

Returns

string


emojiStatusExpirationDate

Get Signature

get emojiStatusExpirationDate(): number

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

Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any

Returns

number


firstName

Get Signature

get firstName(): string

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

Optional. First name of the other party in a private chat

Returns

string


firstProfileAudio

Get Signature

get firstProfileAudio(): AudioAttachment

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

Optional. For private chats, the first audio added to the profile of the user

Returns

AudioAttachment


hasAggressiveAntiSpamEnabled

Get Signature

get hasAggressiveAntiSpamEnabled(): true

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

Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.

Returns

true


hasHiddenMembers

Get Signature

get hasHiddenMembers(): true

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

Optional. True, if non-administrators can only get the list of bots and administrators in the chat

Returns

true


hasPrivateForwards

Get Signature

get hasPrivateForwards(): true

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

Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user

Returns

true


hasProtectedContent

Get Signature

get hasProtectedContent(): true

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

Optional. True, if messages from the chat can't be forwarded to other chats

Returns

true


hasRestrictedVoiceAndVideoMessages

Get Signature

get hasRestrictedVoiceAndVideoMessages(): true

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

Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat

Returns

true


hasVisibleHistory

Get Signature

get hasVisibleHistory(): true

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

Optional. True, if new chat members will have access to old messages; available only to chat administrators

Returns

true


id

Get Signature

get id(): number

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

Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.

Returns

number


Get Signature

get inviteLink(): string

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

Optional. Primary invite link, for groups, supergroups and channel chats

Returns

string


isDirectMessages

Get Signature

get isDirectMessages(): true

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

Optional. True, if the chat is the direct messages chat of a channel

Returns

true


isForum

Get Signature

get isForum(): true

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

Optional. True, if the supergroup chat is a forum (has topics enabled)

Returns

true


joinByRequest

Get Signature

get joinByRequest(): true

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

Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators

Returns

true


joinToSendMessages

Get Signature

get joinToSendMessages(): true

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

Optional. True, if users need to join the supergroup before they can send messages

Returns

true


lastName

Get Signature

get lastName(): string

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

Optional. Last name of the other party in a private chat

Returns

string


linkedChatId

Get Signature

get linkedChatId(): number

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

Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

Returns

number


location

Get Signature

get location(): ChatLocation

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

Optional. For supergroups, the location to which the supergroup is connected

Returns

ChatLocation


maxReactionCount

Get Signature

get maxReactionCount(): number

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

The maximum number of reactions that can be set on a message in the chat

Returns

number


messageAutoDeleteTime

Get Signature

get messageAutoDeleteTime(): number

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

Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds

Returns

number


paidMessageStarCount

Get Signature

get paidMessageStarCount(): number

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

Optional. The number of Telegram Stars a general user have to pay to send a message to the chat

Returns

number


parentChat

Get Signature

get parentChat(): Chat

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

Optional. Information about the corresponding channel chat; for direct messages chats only

Returns

Chat


permissions

Get Signature

get permissions(): ChatPermissions

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

Optional. Default chat member permissions, for groups and supergroups

Returns

ChatPermissions


personalChat

Get Signature

get personalChat(): Chat

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

Optional. For private chats, the personal channel of the user

Returns

Chat


photo

Get Signature

get photo(): ChatPhoto

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

Optional. Chat photo

Returns

ChatPhoto


pinnedMessage

Get Signature

get pinnedMessage(): Message

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

Optional. The most recent pinned message (by sending date)

Returns

Message


profileAccentColorId

Get Signature

get profileAccentColorId(): number

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

Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details.

Returns

number


profileBackgroundCustomEmojiId

Get Signature

get profileBackgroundCustomEmojiId(): string

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

Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background

Returns

string


rating

Get Signature

get rating(): UserRating

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

Optional. For private chats, the rating of the user if any

Returns

UserRating


slowModeDelay

Get Signature

get slowModeDelay(): number

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

Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds

Returns

number


stickerSetName

Get Signature

get stickerSetName(): string

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

Optional. For supergroups, name of the group sticker set

Returns

string


title

Get Signature

get title(): string

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

Optional. Title, for supergroups, channels and group chats

Returns

string


type

Get Signature

get type(): TelegramChatFullInfoType

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

Type of the chat, can be either “private”, “group”, “supergroup” or “channel”

Returns

TelegramChatFullInfoType


uniqueGiftColors

Get Signature

get uniqueGiftColors(): UniqueGiftColors

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

Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews

Returns

UniqueGiftColors


unrestrictBoostCount

Get Signature

get unrestrictBoostCount(): number

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

Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions

Returns

number


username

Get Signature

get username(): string

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

Optional. Username, for private chats, supergroups and channels if available

Returns

string