tgbot-cpp
Loading...
Searching...
No Matches
MessageOriginUser.h
Go to the documentation of this file.
1#ifndef TGBOT_MESSAGEORIGINUSER_H
2#define TGBOT_MESSAGEORIGINUSER_H
3
5#include "tgbot/types/User.h"
6
7#include <memory>
8
9namespace TgBot {
10
17
18public:
19 static const std::string TYPE;
20
21 typedef std::shared_ptr<MessageOriginUser> Ptr;
22
24 this->type = TYPE;
25 }
26
31};
32}
33
34#endif //TGBOT_MESSAGEORIGINUSER_H
This object describes the origin of a message.
std::string type
Type of the message origin.
The message was originally sent by a known user.
static const std::string TYPE
User::Ptr senderUser
User that sent the message originally.
std::shared_ptr< MessageOriginUser > Ptr
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:40