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.
- Alphabetic
- By Inheritance
- Chat
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bio: Option[String]
- val canSetStickerSet: Option[Boolean]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val description: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val firstName: Option[String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val id: Long
- val inviteLink: Option[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lastName: Option[String]
- val linkedChatId: Option[Long]
- val location: Option[ChatLocation]
- val messageAutoDeleteTime: Option[Int]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val permissions: Option[ChatPermissions]
- val photo: Option[ChatPhoto]
- val pinnedMessage: Option[Message]
- val slowModeDelay: Option[Int]
- val stickerSetName: Option[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val title: Option[String]
- val type: String
- val username: Option[String]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated