tgbot-cpp
Loading...
Searching...
No Matches
MessageOriginChannel.h
Go to the documentation of this file.
1#ifndef TGBOT_MESSAGEORIGINCHANNEL_H
2#define TGBOT_MESSAGEORIGINCHANNEL_H
3
5#include "tgbot/types/Chat.h"
6
7#include <cstdint>
8#include <memory>
9#include <string>
10
11namespace TgBot {
12
19
20public:
21 static const std::string TYPE;
22
23 typedef std::shared_ptr<MessageOriginChannel> Ptr;
24
26 this->type = TYPE;
27 }
28
33
37 std::int32_t messageId;
38
42 std::string authorSignature;
43};
44}
45
46#endif //TGBOT_MESSAGEORIGINCHANNEL_H
std::shared_ptr< Chat > Ptr
Definition Chat.h:31
The message was originally sent to a channel chat.
static const std::string TYPE
std::string authorSignature
Optional. Signature of the original post author.
Chat::Ptr chat
Channel chat to which the message was originally sent.
std::int32_t messageId
Unique message identifier inside the chat.
std::shared_ptr< MessageOriginChannel > Ptr
This object describes the origin of a message.
std::string type
Type of the message origin.
Definition Api.h:40