Packages

final case class Chat(id: Long, type: String, title: Option[String] = Option.empty, username: Option[String] = Option.empty, firstName: Option[String] = Option.empty, lastName: Option[String] = Option.empty, photo: Option[ChatPhoto] = Option.empty, bio: Option[String] = Option.empty, description: Option[String] = Option.empty, inviteLink: Option[String] = Option.empty, pinnedMessage: Option[Message] = Option.empty, permissions: Option[ChatPermissions] = Option.empty, slowModeDelay: Option[Int] = Option.empty, messageAutoDeleteTime: Option[Int] = Option.empty, stickerSetName: Option[String] = Option.empty, canSetStickerSet: Option[Boolean] = Option.empty, linkedChatId: Option[Long] = Option.empty, location: Option[ChatLocation] = Option.empty) extends Product with Serializable

This object represents a chat.

id

Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.

type

Type of chat, can be either “private”, “group”, “supergroup” or “channel”

title

Optional. Title, for supergroups, channels and group chats

username

Optional. Username, for private chats, supergroups and channels if available

firstName

Optional. First name of the other party in a private chat

lastName

Optional. Last name of the other party in a private chat

photo

Optional. Chat photo. Returned only in getChat.

bio

Optional. Bio of the other party in a private chat. Returned only in getChat.

description

Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.

inviteLink

Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat.

pinnedMessage

Optional. The most recent pinned message (by sending date). Returned only in getChat.

permissions

Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.

slowModeDelay

Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user. Returned only in getChat.

messageAutoDeleteTime

Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.

stickerSetName

Optional. For supergroups, name of group sticker set. Returned only in getChat.

canSetStickerSet

Optional. True, if the bot can change the group sticker set. Returned only in getChat.

linkedChatId

Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat.

location

Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Chat
  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 Chat(id: Long, type: String, title: Option[String] = Option.empty, username: Option[String] = Option.empty, firstName: Option[String] = Option.empty, lastName: Option[String] = Option.empty, photo: Option[ChatPhoto] = Option.empty, bio: Option[String] = Option.empty, description: Option[String] = Option.empty, inviteLink: Option[String] = Option.empty, pinnedMessage: Option[Message] = Option.empty, permissions: Option[ChatPermissions] = Option.empty, slowModeDelay: Option[Int] = Option.empty, messageAutoDeleteTime: Option[Int] = Option.empty, stickerSetName: Option[String] = Option.empty, canSetStickerSet: Option[Boolean] = Option.empty, linkedChatId: Option[Long] = Option.empty, location: Option[ChatLocation] = Option.empty)

    id

    Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.

    type

    Type of chat, can be either “private”, “group”, “supergroup” or “channel”

    title

    Optional. Title, for supergroups, channels and group chats

    username

    Optional. Username, for private chats, supergroups and channels if available

    firstName

    Optional. First name of the other party in a private chat

    lastName

    Optional. Last name of the other party in a private chat

    photo

    Optional. Chat photo. Returned only in getChat.

    bio

    Optional. Bio of the other party in a private chat. Returned only in getChat.

    description

    Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.

    inviteLink

    Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat.

    pinnedMessage

    Optional. The most recent pinned message (by sending date). Returned only in getChat.

    permissions

    Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.

    slowModeDelay

    Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user. Returned only in getChat.

    messageAutoDeleteTime

    Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.

    stickerSetName

    Optional. For supergroups, name of group sticker set. Returned only in getChat.

    canSetStickerSet

    Optional. True, if the bot can change the group sticker set. Returned only in getChat.

    linkedChatId

    Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat.

    location

    Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val bio: Option[String]
  6. val canSetStickerSet: Option[Boolean]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. val description: Option[String]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. val firstName: Option[String]
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. val id: Long
  13. val inviteLink: Option[String]
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val lastName: Option[String]
  16. val linkedChatId: Option[Long]
  17. val location: Option[ChatLocation]
  18. val messageAutoDeleteTime: Option[Int]
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. val permissions: Option[ChatPermissions]
  23. val photo: Option[ChatPhoto]
  24. val pinnedMessage: Option[Message]
  25. val slowModeDelay: Option[Int]
  26. val stickerSetName: Option[String]
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. val title: Option[String]
  29. val type: String
  30. val username: Option[String]
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped