13 sendVoice::sendVoice(
Chat C,
string voice) :
15 chat_id(to_string(C.getId())), voice(move(voice))
22 chat_id(to_string(chat_id)), voice(move(voice))
29 chat_id(move(chat_id)), voice(move(voice))
42 Outgoing[
"voice"] = getVoice();
62 curl_formadd(start,end,
63 CURLFORM_COPYNAME,
"chat_id",
64 CURLFORM_COPYCONTENTS,
chat_id.c_str(),
66 curl_formadd(start,end,
67 CURLFORM_COPYNAME,
"voice",
68 CURLFORM_FILE,voice.c_str(),
71 curl_formadd(start,end,
72 CURLFORM_COPYNAME,
"caption",
73 CURLFORM_COPYCONTENTS,
caption.value().c_str(),
std::optional< bool > disable_notification
std::optional< unsigned int > duration
const std::optional< std::int32_t > & getReply_to_message_id() const
const std::optional< bool > & getDisable_notification() const
const std::optional< int > & getReply_to_message_id() const
void setReply_to_message_id(const std::optional< int > &reply_to_message_id)
const std::optional< std::string > & getCaption() const
void setDuration(const std::optional< unsigned int > &duration)
void setCaption(const std::optional< std::string > &caption)
const std::optional< std::string > & getCaption() const
void setReplyMarkup(const ReplyKeyboardMarkup RKM)
std::optional< std::string > caption
const std::string & getChat_id() const
std::optional< bool > disable_notification
const std::string & getChat_id() const
const std::optional< bool > & getDisable_notification() const
const std::optional< unsigned int > & getDuration() const
std::optional< ReplyMarkup > reply_markup
void setDisable_notification(const std::optional< bool > &disable_notification)
const std::optional< ReplyMarkup > & getReply_markup() const
std::optional< ReplyMarkup > reply_markup
sendVoice(std::int64_t chat_id, std::string voice)
const std::string & getVoice() const
const std::optional< unsigned int > & getDuration() const
void add_to_post(struct curl_httppost **start, struct curl_httppost **end)
std::optional< int > reply_to_message_id
std::optional< unsigned int > duration
std::optional< std::string > caption
std::optional< std::int32_t > reply_to_message_id