All Downloads are FREE. Search and download functionalities are using the official Maven repository.

telegramium.bots.BusinessConnection.scala Maven / Gradle / Ivy

There is a newer version: 9.711.0
Show newest version
package telegramium.bots

/** Describes the connection of the bot with a business account.
  *
  * @param id
  *   Unique identifier of the business connection
  * @param user
  *   Business account user that created the business connection
  * @param userChatId
  *   Identifier of a private chat with the user who created the business connection. 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 64-bit integer or double-precision float type are safe for storing this
  *   identifier.
  * @param date
  *   Date the connection was established in Unix time
  * @param canReply
  *   True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours
  * @param isEnabled
  *   True, if the connection is active
  */
final case class BusinessConnection(
  id: String,
  user: User,
  userChatId: Long,
  date: Int,
  canReply: Boolean,
  isEnabled: Boolean
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy