Raw.Chat
Info about a group
chat#41cbf256 flags:# creator:flags.0?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true noforwards:flags.25?true id:long title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat;
export namespace Raw {
export class Chat {
constructor(params: {
creator?: boolean;
left?: boolean;
deactivated?: boolean;
callActive?: boolean;
callNotEmpty?: boolean;
noforwards?: boolean;
id: bigint;
title: string;
photo: Raw.TypeChatPhoto;
participantsCount: number;
date: number;
version: number;
migratedTo?: Raw.TypeInputChannel;
adminRights?: Raw.TypeChatAdminRights;
defaultBannedRights?: Raw.TypeChatBannedRights;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x41cbf256
Property
creator
: boolean or undefinedWhether the current user is the creator of the group
left
: boolean or undefinedWhether the current user has left the group
deactivated
: boolean or undefinedWhether the group was migrated
callActive
: boolean or undefinedWhether a group call is currently active
callNotEmpty
: boolean or undefinedWhether there’s anyone in the group call
noforwards
: boolean or undefinedWhether this group is protected, thus does not allow forwarding messages from it
id
: bigintId of the group, see here for more info
title
: stringTitle
photo
: Raw.TypeChatPhotoChat photo
participantsCount
: numberParticipant count
date
: numberDate of creation of the group
version
: numberUsed in basic groups to reorder updates and make sure that all of them were received.
migratedTo
: Raw.TypeInputChannel or undefinedMeans this chat was upgraded to a supergroup
adminRights
: Raw.TypeChatAdminRights or undefinedAdmin rights of the user in the group
defaultBannedRights
: Raw.TypeChatBannedRights or undefinedDefault banned rights of all users in the group