14 sendPhoto::sendPhoto(
Chat C,
string photo) :
16 chat_id(to_string(C.getId())), Photo(move(photo))
23 chat_id(to_string(chat_id)), Photo(move(photo))
30 chat_id(move(chat_id)), Photo(move(photo))
42 Outgoing[
"photo"] = getPhoto();
45 Outgoing[
"caption"] = getCaption().value();
59 curl_formadd(start,end,
60 CURLFORM_COPYNAME,
"chat_id",
61 CURLFORM_COPYCONTENTS,
chat_id.c_str(),
63 curl_formadd(start,end,
64 CURLFORM_COPYNAME,
"photo",
65 CURLFORM_FILE,Photo.c_str(),
68 curl_formadd(start,end,
69 CURLFORM_COPYNAME,
"caption",
70 CURLFORM_COPYCONTENTS,caption.value().c_str(),
74 curl_formadd(start,end,
75 CURLFORM_COPYNAME,
"disable_notification",
76 CURLFORM_COPYCONTENTS,
"true",
80 curl_formadd(start,end,
81 CURLFORM_COPYNAME,
"reply_to_message_id",
82 CURLFORM_COPYCONTENTS,
"true",
const std::string & getChat_id() const
const std::string & getChat_id() const
std::optional< bool > disable_notification
const std::optional< std::int32_t > & getReply_to_message_id() const
const std::string & getPhoto() const
void setReplyMarkup(const ReplyKeyboardMarkup RKM)
const std::optional< ReplyMarkup > & getReply_markup() const
std::optional< std::int32_t > reply_to_message_id
void setCaption(const std::optional< std::string > &caption)
void setReply_to_message_id(const std::optional< std::int32_t > &reply_to_message_id)
const std::optional< bool > & getDisable_notification() const
std::optional< std::string > caption
std::optional< ReplyMarkup > reply_markup
const std::optional< std::string > & getCaption() const
std::optional< ReplyMarkup > reply_markup
const std::optional< bool > & getDisable_notification() const
const std::optional< std::int32_t > & getReply_to_message_id() const
void setDisable_notification(const std::optional< bool > &disable_notification)
void add_to_post(struct curl_httppost **start, struct curl_httppost **end)
std::optional< std::int32_t > reply_to_message_id
std::optional< bool > disable_notification
sendPhoto(std::int64_t chat_id, std::string photo)