blob: 2a534abe08c88489a96ce097378e56d65e423575 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef TGBOT_MESSAGEORIGINCHANNEL_H
#define TGBOT_MESSAGEORIGINCHANNEL_H
#include "tgbot/types/MessageOrigin.h"
#include "tgbot/types/Chat.h"
#include <cstdint>
#include <memory>
#include <string>
namespace TgBot {
/**
* @brief The message was originally sent to a channel chat.
*
* @ingroup types
*/
class MessageOriginChannel : public MessageOrigin {
public:
static const std::string TYPE;
typedef std::shared_ptr<MessageOriginChannel> Ptr;
MessageOriginChannel() {
this->type = TYPE;
}
/**
* @brief Channel chat to which the message was originally sent
*/
Chat::Ptr chat;
/**
* @brief Unique message identifier inside the chat
*/
std::int32_t messageId;
/**
* @brief Optional. Signature of the original post author
*/
std::string authorSignature;
};
}
#endif //TGBOT_MESSAGEORIGINCHANNEL_H
|