Show / Hide Table of Contents

Class Chat

Represents a chat.

Inheritance
System.Object
Chat
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class Chat

Properties

| Improve this Doc View Source

AllMembersAreAdministrators

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Id

Unique identifier of this chat

Declaration
[JsonProperty(PropertyName = "id", Required = Required.Always)]
public long Id { get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Photo

Chat photo. ONLY returned in getChat.

Declaration
[JsonProperty(PropertyName = "photo")]
public ChatPhoto Photo { get; set; }
Property Value
Type Description
ChatPhoto
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Type

Type of the chat

Declaration
public ChatType Type { get; set; }
Property Value
Type Description
ChatType
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX