tgbot-cpp
Loading...
Searching...
No Matches
TgBot::KeyboardButtonRequestManagedBot Struct Reference

This object defines the parameters for the creation of a managed bot. Information about the created bot will be shared with the bot using the update managed_bot and a Message with the field managed_bot_created. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<KeyboardButtonRequestManagedBot>

Public Attributes

std::int32_t requestId { }
 Signed 32-bit identifier of the request. Must be unique within the message.
std::optional< std::string > suggestedName { }
 Optional. Suggested name for the bot.
std::optional< std::string > suggestedUsername { }
 Optional. Suggested username for the bot. The username must end with “bot”. If the user creating the bot has a Telegram Premium subscription, then the username can also end with “agent”, “ai”, “app”, “game”, or “gay”; in this case, the username will be assigned to the bot as a secondary username, and a regular username ending with “bot” will be assigned to the bot automatically.

Detailed Description

This object defines the parameters for the creation of a managed bot. Information about the created bot will be shared with the bot using the update managed_bot and a Message with the field managed_bot_created.

Definition at line 8112 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 8113 of file Types.h.

Member Data Documentation

◆ requestId

std::int32_t TgBot::KeyboardButtonRequestManagedBot::requestId { }

Signed 32-bit identifier of the request. Must be unique within the message.

Definition at line 8118 of file Types.h.

◆ suggestedName

std::optional<std::string> TgBot::KeyboardButtonRequestManagedBot::suggestedName { }

Optional. Suggested name for the bot.

Definition at line 8122 of file Types.h.

◆ suggestedUsername

std::optional<std::string> TgBot::KeyboardButtonRequestManagedBot::suggestedUsername { }

Optional. Suggested username for the bot. The username must end with “bot”. If the user creating the bot has a Telegram Premium subscription, then the username can also end with “agent”, “ai”, “app”, “game”, or “gay”; in this case, the username will be assigned to the bot as a secondary username, and a regular username ending with “bot” will be assigned to the bot automatically.

Definition at line 8130 of file Types.h.


The documentation for this struct was generated from the following file: