KeyboardButtonRequestUsers

telegramium.bots.KeyboardButtonRequestUsers
final case class KeyboardButtonRequestUsers(requestId: Int, userIsBot: Option[Boolean], userIsPremium: Option[Boolean], maxQuantity: Option[Int], requestName: Option[Boolean], requestUsername: Option[Boolean], requestPhoto: Option[Boolean])

This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed.

Value parameters

maxQuantity

Optional. The maximum number of users to be selected; 1-10. Defaults to 1.

requestId

Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message

requestName

Optional. Pass True to request the users' first and last name

requestPhoto

Optional. Pass True to request the users' photo

requestUsername

Optional. Pass True to request the users' username

userIsBot

Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.

userIsPremium

Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no additional restrictions are applied.

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