Class

com.bot4s.telegram.models

ChatMember

Related Doc: package models

Permalink

case class ChatMember(user: User, status: MemberStatus, untilDate: Option[Int] = None, canBeEdited: Option[Boolean] = None, canChangeInfo: Option[Boolean] = None, canPostMessages: Option[Boolean] = None, canEditMessages: Option[Boolean] = None, canDeleteMessages: Option[Boolean] = None, canInviteUsers: Option[Boolean] = None, canRestrictMembers: Option[Boolean] = None, canPinMessages: Option[Boolean] = None, canPromoteMembers: Option[Boolean] = None, canSendMessages: Option[Boolean] = None, canSendMediaMessages: Option[Boolean] = None, canSendOtherMessages: Option[Boolean] = None, canAddWebPagePreviews: Option[Boolean] = None) extends Product with Serializable

This object contains information about one member of the chat.

user

User Information about the user

status

String The member's status in the chat. Can be "creator", "administrator", "member", "left" or "kicked"

untilDate

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

canBeEdited

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

canChangeInfo

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

canPostMessages

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

canEditMessages

Boolean Optional. Administrators only. True, if the administrator can edit messages of other users, channels only

canDeleteMessages

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

canInviteUsers

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

canRestrictMembers

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

canPinMessages

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

canPromoteMembers

Boolean Optional. 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)

canSendMessages

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

canSendMediaMessages

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

canSendOtherMessages

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

canAddWebPagePreviews

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

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ChatMember
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ChatMember(user: User, status: MemberStatus, untilDate: Option[Int] = None, canBeEdited: Option[Boolean] = None, canChangeInfo: Option[Boolean] = None, canPostMessages: Option[Boolean] = None, canEditMessages: Option[Boolean] = None, canDeleteMessages: Option[Boolean] = None, canInviteUsers: Option[Boolean] = None, canRestrictMembers: Option[Boolean] = None, canPinMessages: Option[Boolean] = None, canPromoteMembers: Option[Boolean] = None, canSendMessages: Option[Boolean] = None, canSendMediaMessages: Option[Boolean] = None, canSendOtherMessages: Option[Boolean] = None, canAddWebPagePreviews: Option[Boolean] = None)

    Permalink

    user

    User Information about the user

    status

    String The member's status in the chat. Can be "creator", "administrator", "member", "left" or "kicked"

    untilDate

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

    canBeEdited

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

    canChangeInfo

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

    canPostMessages

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

    canEditMessages

    Boolean Optional. Administrators only. True, if the administrator can edit messages of other users, channels only

    canDeleteMessages

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

    canInviteUsers

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

    canRestrictMembers

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

    canPinMessages

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

    canPromoteMembers

    Boolean Optional. 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)

    canSendMessages

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

    canSendMediaMessages

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

    canSendOtherMessages

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

    canAddWebPagePreviews

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val canAddWebPagePreviews: Option[Boolean]

    Permalink

    Boolean Optional.

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

  6. val canBeEdited: Option[Boolean]

    Permalink

    Boolean Optional.

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

  7. val canChangeInfo: Option[Boolean]

    Permalink

    Boolean Optional.

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

  8. val canDeleteMessages: Option[Boolean]

    Permalink

    Boolean Optional.

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

  9. val canEditMessages: Option[Boolean]

    Permalink

    Boolean Optional.

    Boolean Optional. Administrators only. True, if the administrator can edit messages of other users, channels only

  10. val canInviteUsers: Option[Boolean]

    Permalink

    Boolean Optional.

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

  11. val canPinMessages: Option[Boolean]

    Permalink

    Boolean Optional.

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

  12. val canPostMessages: Option[Boolean]

    Permalink

    Boolean Optional.

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

  13. val canPromoteMembers: Option[Boolean]

    Permalink

    Boolean Optional.

    Boolean Optional. 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)

  14. val canRestrictMembers: Option[Boolean]

    Permalink

    Boolean Optional.

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

  15. val canSendMediaMessages: Option[Boolean]

    Permalink

    Boolean Optional.

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

  16. val canSendMessages: Option[Boolean]

    Permalink

    Boolean Optional.

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

  17. val canSendOtherMessages: Option[Boolean]

    Permalink

    Boolean Optional.

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

  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. val status: MemberStatus

    Permalink

    String The member's status in the chat.

    String The member's status in the chat. Can be "creator", "administrator", "member", "left" or "kicked"

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. val untilDate: Option[Int]

    Permalink

    Integer Optional.

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

  29. val user: User

    Permalink

    User Information about the user

  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped