User

telegramium.bots.User
final case class User(id: Long, isBot: Boolean, firstName: String, lastName: Option[String], username: Option[String], languageCode: Option[String], isPremium: Option[Boolean], addedToAttachmentMenu: Option[Boolean], canJoinGroups: Option[Boolean], canReadAllGroupMessages: Option[Boolean], supportsInlineQueries: Option[Boolean], canConnectToBusiness: Option[Boolean])

This object represents a Telegram user or bot.

Value parameters

addedToAttachmentMenu

Optional. True, if this user added the bot to the attachment menu

canConnectToBusiness

Optional. True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe.

canJoinGroups

Optional. True, if the bot can be invited to groups. Returned only in getMe.

canReadAllGroupMessages

Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.

firstName

User's or bot's first name

id

Unique identifier for this user or bot. 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.

isBot

True, if this user is a bot

isPremium

Optional. True, if this user is a Telegram Premium user

languageCode

Optional. IETF language tag of the user's language

lastName

Optional. User's or bot's last name

supportsInlineQueries

Optional. True, if the bot supports inline queries. Returned only in getMe.

username

Optional. User's or bot's username

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product