xxtelebot  1.4.1.0
A simple Telegram Bot implementation in C++
https.h
1 #ifndef TGBOT_HTTPS_H
2 #define TGBOT_HTTPS_H
3 
4 #include <curl/curl.h>
5 #include <unordered_map>
6 #include <map>
7 #include <string>
8 #include "../methods/types.h"
9 
10 namespace tgbot {
11 
15 namespace utils {
19 namespace http {
20 
21  struct value {
22  const char* basicValue;
23  const char* file;
24  const char* mimeType;
25  };
26 
27  using PostForms = std::unordered_map<const char*, value>;
28 
29  void __internal_Curl_GlobalInit();
30 
37  std::string get(CURL *c, const std::string &full);
38 
46  std::string multiPartUpload(CURL *c, const std::string& full, PostForms const& forms);
47 
52  CURL *curlEasyInit();
53 
54 } // namespace http
55 
56 } // namespace utils
57 
58 } // namespace tgbot
59 
60 #endif
Main tgbot namespace.
Definition: bot.h:13
Definition: https.h:21
CURL * curlEasyInit()
Initialize CURL.
std::string multiPartUpload(CURL *c, const std::string &full, PostForms const &forms)
Multi part upload utils.