tgbot-cpp
Loading...
Searching...
No Matches
MessageOrigin.h
Go to the documentation of this file.
1#ifndef TGBOT_MESSAGEORIGIN_H
2#define TGBOT_MESSAGEORIGIN_H
3
4#include <cstdint>
5#include <memory>
6#include <string>
7
8namespace TgBot {
9
22
23public:
24 typedef std::shared_ptr<MessageOrigin> Ptr;
25
27
28 virtual ~MessageOrigin() {}
29
33 std::string type;
34
38 std::uint32_t date;
39};
40}
41
42#endif //TGBOT_MESSAGEORIGIN_H
This object describes the origin of a message.
std::uint32_t date
Date the message was sent originally in Unix time.
std::string type
Type of the message origin.
std::shared_ptr< MessageOrigin > Ptr
Definition Api.h:40