13 sendVideo::sendVideo(
Chat C,
string video) :
15 chat_id(to_string(C.getId())), video(move(video))
22 chat_id(to_string(chat_id)), video(move(video))
29 chat_id(move(chat_id)), video(move(video))
42 Outgoing[
"video"] = getVideo();
48 Outgoing[
"duration"] = getDuration().value();
51 Outgoing[
"width"] = getWidth().value();
54 Outgoing[
"height"] = getHeight().value();
68 curl_formadd(start,end,
69 CURLFORM_COPYNAME,
"chat_id",
70 CURLFORM_COPYCONTENTS,
chat_id.c_str(),
72 curl_formadd(start,end,
73 CURLFORM_COPYNAME,
"video",
74 CURLFORM_FILE,video.c_str(),
77 curl_formadd(start,end,
78 CURLFORM_COPYNAME,
"caption",
79 CURLFORM_COPYCONTENTS,
caption.value().c_str(),
std::optional< bool > disable_notification
const std::optional< std::int32_t > & getReply_to_message_id() const
void setDuration(const std::optional< unsigned int > &duration)
const std::string & getChat_id() const
const std::optional< std::string > & getCaption() const
std::optional< bool > disable_notification
const std::optional< unsigned int > & getHeight() const
void setDisable_notification(const std::optional< bool > &disable_notification)
void setWidth(const std::optional< unsigned int > &width)
std::optional< std::string > caption
const std::string & getChat_id() const
std::optional< unsigned int > height
const std::optional< unsigned int > & getWidth() const
void setCaption(const std::optional< std::string > &caption)
const std::optional< ReplyMarkup > & getReply_markup() const
const std::optional< bool > & getDisable_notification() const
void add_to_post(struct curl_httppost **start, struct curl_httppost **end)
std::optional< ReplyMarkup > reply_markup
const std::optional< bool > & getDisable_notification() const
std::optional< std::string > caption
void setReplyMarkup(const ReplyKeyboardMarkup RKM)
std::optional< ReplyMarkup > reply_markup
const std::optional< std::string > & getCaption() const
const std::optional< unsigned int > & getDuration() const
sendVideo(std::int64_t chat_id, std::string video)
const std::string & getVideo() const
const std::optional< std::int32_t > & getReply_to_message_id() const
std::optional< unsigned int > width
void setReply_to_message_id(const std::optional< int > &reply_to_message_id)
std::optional< unsigned int > duration
void setHeight(const std::optional< unsigned int > &height)
std::optional< std::int32_t > reply_to_message_id
std::optional< std::int32_t > reply_to_message_id