Class Chat
Represents a chat.
Inheritance
Inherited Members
Namespace: TelegramBotApi.Types
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class Chat
  Properties
| Improve this Doc View SourceAllMembersAreAdministrators
True if "All members are admins" is enabled in this chat
Declaration
[JsonProperty(PropertyName = "all_members_are_administrators")]
public bool AllMembersAreAdministrators { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
CanSetStickerSet
Whether the bot is able to set the supergroups sticker set. ONLY returned in getChat.
Declaration
[JsonProperty(PropertyName = "can_set_sticker_set")]
public bool CanSetStickerSet { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Description
Description of a supergroup or channel. ONLY returned in getChat.
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
FirstName
The first name of the other party in a private chat
Declaration
[JsonProperty(PropertyName = "first_name")]
public string FirstName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Id
Unique identifier of this chat
Declaration
[JsonProperty(PropertyName = "id", Required = Required.Always)]
public long Id { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Int64 | 
InviteLink
Chat invite link, for supergroups and channels if available. ONLY returned in getChat.
Declaration
[JsonProperty(PropertyName = "invite_link")]
public string InviteLink { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
LastName
The last name of the other party in a private chat
Declaration
[JsonProperty(PropertyName = "last_name")]
public string LastName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Photo
Chat photo. ONLY returned in getChat.
Declaration
[JsonProperty(PropertyName = "photo")]
public ChatPhoto Photo { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ChatPhoto | 
PinnedMessage
The pinned message of a supergroup or channel. ONLY returned in getChat.
Declaration
[JsonProperty(PropertyName = "pinned_message")]
public Message PinnedMessage { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Message | 
StickerSetName
Name of sticker set for supergroups. ONLY returned in getChat.
Declaration
[JsonProperty(PropertyName = "sticker_set_name")]
public string StickerSetName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Title
The title of the chat for groups, supergroups, or channels.
Declaration
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Type
Type of the chat
Declaration
public ChatType Type { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ChatType | 
Username
The username of the private chat, supergroup or channel if available
Declaration
[JsonProperty(PropertyName = "username")]
public string Username { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String |