Class ChatMember
Represents a member of a chat
Inheritance
Inherited Members
Namespace: TelegramBotApi.Types
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class ChatMember
Properties
| Improve this Doc View SourceCanAddWebPagePreviews
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Status
Member's status in the chat
Declaration
public ChatMemberStatus Status { get; set; }
Property Value
Type | Description |
---|---|
ChatMemberStatus |
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 |
User
Information about the user
Declaration
[JsonProperty(PropertyName = "user")]
public User User { get; set; }
Property Value
Type | Description |
---|---|
User |