15 chat_id(to_string(C.getId())), document(move(Document))
22 chat_id(to_string(chat_id)), document(move(Document))
29 chat_id(move(chat_id)), document(move(Document))
42 Outgoing[
"document"] = getDocument();
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,
"document",
65 CURLFORM_FILE,document.c_str(),
68 curl_formadd(start,end,
69 CURLFORM_COPYNAME,
"caption",
70 CURLFORM_COPYCONTENTS,
caption.value().c_str(),
const std::optional< std::string > & getCaption() const
const std::optional< bool > & getDisable_notification() const
void setCaption(const std::optional< std::string > &caption)
std::optional< bool > disable_notification
std::optional< std::string > caption
void add_to_post(struct curl_httppost **start, struct curl_httppost **end)
const std::optional< std::int32_t > & getReply_to_message_id() const
const std::string & getChat_id() const
const std::optional< ReplyMarkup > & getReply_markup() const
const std::string & getDocument() const
void setReplyMarkup(const ReplyKeyboardMarkup RKM)
std::optional< bool > disable_notification
std::optional< ReplyMarkup > reply_markup
const std::optional< std::string > & getCaption() const
const std::optional< std::int32_t > & getReply_to_message_id() const
const std::string & getChat_id() const
sendDocument(std::int64_t chat_id, std::string document)
std::optional< std::int32_t > reply_to_message_id
const std::optional< bool > & getDisable_notification() const
void setDisable_notification(const std::optional< bool > &disable_notification)
void setReply_to_message_id(const std::optional< int > &reply_to_message_id)
std::optional< ReplyMarkup > reply_markup
std::optional< std::string > caption
std::optional< std::int32_t > reply_to_message_id