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

Arguments for Api::answerPreCheckoutQuery. More...

#include <Types.h>

Public Attributes

std::string preCheckoutQueryId { }
 Unique identifier for the query to be answered.
bool ok { }
 Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.
std::string errorMessage = ""
 Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.

Detailed Description

Arguments for Api::answerPreCheckoutQuery.

Definition at line 14526 of file Types.h.

Member Data Documentation

◆ errorMessage

std::string TgBot::AnswerPreCheckoutQueryArgs::errorMessage = ""

Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.

Definition at line 14547 of file Types.h.

◆ ok

bool TgBot::AnswerPreCheckoutQueryArgs::ok { }

Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.

Definition at line 14537 of file Types.h.

◆ preCheckoutQueryId

std::string TgBot::AnswerPreCheckoutQueryArgs::preCheckoutQueryId { }

Unique identifier for the query to be answered.

Definition at line 14530 of file Types.h.


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