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
49
TYPE
type
;
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
TgBot::InputMedia::duration
int32_t duration
Definition:
InputMedia.h:79
TgBot
Definition:
Api.h:46
TgBot::InputMedia::width
int32_t width
Definition:
InputMedia.h:69
TgBot::InputMedia
Definition:
InputMedia.h:37
TgBot::InputMedia::TYPE::VIDEO
TgBot::InputMedia::caption
std::string caption
Definition:
InputMedia.h:59
TgBot::InputMedia::height
int32_t height
Definition:
InputMedia.h:74
TgBot::InputMedia::type
TYPE type
Definition:
InputMedia.h:49
TgBot::InputMedia::TYPE::PHOTO
TgBot::InputMedia::supportsStreaming
bool supportsStreaming
Definition:
InputMedia.h:84
TgBot::InputMedia::Ptr
std::shared_ptr< InputMedia > Ptr
Definition:
InputMedia.h:39
TgBot::InputMedia::TYPE
TYPE
Definition:
InputMedia.h:41
TgBot::InputMedia::media
std::string media
Definition:
InputMedia.h:54
TgBot::InputMedia::parseMode
std::string parseMode
Definition:
InputMedia.h:64
include
tgbot
types
InputMedia.h
Generated on Sun May 27 2018 22:44:47 for tgbot-cpp by
1.8.13