Show / Hide Table of Contents

Class ChatMember

Represents a member of a chat

Inheritance
System.Object
ChatMember
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 ChatMember

Properties

| Improve this Doc View Source

CanAddWebPagePreviews

Restricted only. True, if user may add web page previews to his messages, implies CanSendMediaMessages

Declaration
[JsonProperty(PropertyName = "can_add_web_page_previews")]
public bool CanAddWebPagePreviews { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanBeEdited

Administrators only. True, if the bot is allowed to edit administrator privileges of that user

Declaration
[JsonProperty(PropertyName = "can_be_edited")]
public bool CanBeEdited { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanChangeInfo

Administrators only. True, if the administrator can change the chat title, photo and other settings

Declaration
[JsonProperty(PropertyName = "can_change_info")]
public bool CanChangeInfo { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanDeleteMessages

Administrators only. True, if the administrator can delete messages of other users

Declaration
[JsonProperty(PropertyName = "can_delete_messages")]
public bool CanDeleteMessages { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanEditMessages

Administrators only. True, if the administrator can edit messages of other users and can pin messages, channels only

Declaration
[JsonProperty(PropertyName = "can_edit_messages")]
public bool CanEditMessages { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanInviteUsers

Administrators only. True, if the administrator can invite new users to the chat

Declaration
[JsonProperty(PropertyName = "can_invite_users")]
public bool CanInviteUsers { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanPinMessages

Administrators only. True, if the administrator can pin messages, supergroups only

Declaration
[JsonProperty(PropertyName = "can_pin_messages")]
public bool CanPinMessages { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanPostMessages

Administrators only. True, if the administrator can post in the channel, channels only

Declaration
[JsonProperty(PropertyName = "can_post_messages")]
public bool CanPostMessages { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanPromoteMembers

Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)

Declaration
[JsonProperty(PropertyName = "can_promote_members")]
public bool CanPromoteMembers { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanRestrictMembers

Administrators only. True, if the administrator can restrict, ban or unban chat members

Declaration
[JsonProperty(PropertyName = "can_restrict_users")]
public bool CanRestrictMembers { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanSendMediaMessages

Restricted only. True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies CanSendMessages

Declaration
[JsonProperty(PropertyName = "can_send_media_messages")]
public bool CanSendMediaMessages { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanSendMessages

Restricted only. True, if the user can send text messages, contacts, locations and venues

Declaration
[JsonProperty(PropertyName = "can_send_messages")]
public bool CanSendMessages { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanSendOtherMessages

Restricted only. True, if the user can send animations, games, stickers and use inline bots, implies CanSendMediaMessages

Declaration
[JsonProperty(PropertyName = "can_send_other_messages")]
public bool CanSendOtherMessages { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Status

Member's status in the chat

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

UntilDate

Optional. Restricted and kicked only. Date when restrictions will be lifted for this user, unix time

Declaration
public DateTime UntilDate { get; set; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

User

Information about the user

Declaration
[JsonProperty(PropertyName = "user")]
public User User { get; set; }
Property Value
Type Description
User
  • Improve this Doc
  • View Source
Back to top Generated by DocFX