From ce9bcf9d653a0598b41fcf52708d01b396c6fd30 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 27 May 2018 22:44:51 +0300 Subject: Update README.md and docs --- docs/_input_media_8h_source.html | 112 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 docs/_input_media_8h_source.html (limited to 'docs/_input_media_8h_source.html') diff --git a/docs/_input_media_8h_source.html b/docs/_input_media_8h_source.html new file mode 100644 index 0000000..002daaa --- /dev/null +++ b/docs/_input_media_8h_source.html @@ -0,0 +1,112 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/InputMedia.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
InputMedia.h
+
+
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  * Copyright (c) 2016 Konstantin Kukin
4  * Copyright (c) 2018 JellyBrick
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  * SOFTWARE.
23  */
24 
25 #ifndef TGBOT_INPUTMEDIA_H
26 #define TGBOT_INPUTMEDIA_H
27 
28 #include <memory>
29 #include <string>
30 
31 namespace TgBot {
32 
37 class InputMedia {
38 public:
39  typedef std::shared_ptr<InputMedia> Ptr;
40 
41  enum class TYPE : uint8_t {
42  PHOTO,
43  VIDEO
44  };
45 
50 
54  std::string media;
55 
59  std::string caption;
60 
64  std::string parseMode;
65 
69  int32_t width = 0;
70 
74  int32_t height = 0;
75 
79  int32_t duration = 0;
80 
84  bool supportsStreaming = false;
85 };
86 }
87 
88 #endif //TGBOT_INPUTMEDIA_H
int32_t duration
Definition: InputMedia.h:79
+
Definition: Api.h:46
+ + + +
std::string caption
Definition: InputMedia.h:59
+ + + +
bool supportsStreaming
Definition: InputMedia.h:84
+
std::shared_ptr< InputMedia > Ptr
Definition: InputMedia.h:39
+ +
std::string media
Definition: InputMedia.h:54
+
std::string parseMode
Definition: InputMedia.h:64
+
+
+ + + + -- cgit v1.2.3