StaticGramBot API

KeyboardButtonRequestUsers

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. More about requesting users »

Поля

request_idInteger
Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message.
user_is_botBooleanoptional
Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.
user_is_premiumBooleanoptional
Pass True to request premium users, pass False to request non-premium users. If not specified, no additional restrictions are applied.
max_quantityIntegeroptional
The maximum number of users to be selected; 1-10. Defaults to 1.
request_nameBooleanoptional
Pass True to request the users' first and last names
request_usernameBooleanoptional
Pass True to request the users' usernames
request_photoBooleanoptional
Pass True to request the users' photos

Минимальный JSON

JSON
{
  "request_id": 1
}

Где используется

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top