13 sendMessage::sendMessage(
Chat C,
string text) :
15 chat_id(to_string(C.getId())), text(move(text))
22 chat_id(to_string(chat_id)), text(move(text))
29 chat_id(move(chat_id)), text(move(text))
42 Outgoing[
"text"] = getText();
44 Outgoing[
"parse_mode"] = getParse_mode().value();
46 if(getDisable_web_page_preview()){
47 Outgoing[
"disable_web_page_preview"] = getDisable_web_page_preview().value();
121 return disable_web_page_preview;
void setReply_to_message_id(const std::optional< std::int32_t > &reply_to_message_id)
std::optional< int > reply_to_message_id
sendMessage(std::int64_t chat_id, std::string text)
const std::string & getChat_id() const
const std::optional< std::int32_t > & getReply_to_message_id() const
std::optional< bool > disable_notification
void setParse_mode(const std::optional< std::string > &parse_mode)
std::optional< std::int32_t > reply_to_message_id
void setReplyMarkup(const ReplyKeyboardMarkup RKM)
const std::optional< int > & getReply_to_message_id() const
std::optional< bool > disable_web_page_preview
const std::optional< bool > & getDisable_web_page_preview() const
const std::string & getText() const
std::optional< ReplyMarkup > reply_markup
void setDisable_notification(const std::optional< bool > &disable_notification)
const std::optional< std::string > & getParse_mode() const
std::optional< ReplyMarkup > reply_markup
const std::optional< bool > & getDisable_notification() const
const std::optional< bool > & getDisable_notification() const
const std::string & getChat_id() const
void setDisable_web_page_preview(const std::optional< bool > &disable_web_page_preview)
std::optional< bool > disable_notification
const std::optional< ReplyMarkup > & getReply_markup() const
std::optional< std::string > parse_mode