summaryrefslogtreecommitdiff
path: root/include/tgbot/types/MessageOriginChat.h
blob: 8a750e7e716eea3e329f60a5947d0d1f9c8f5d95 (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
#ifndef TGBOT_MESSAGEORIGINCHAT_H
#define TGBOT_MESSAGEORIGINCHAT_H

#include "tgbot/types/MessageOrigin.h"
#include "tgbot/types/Chat.h"

#include <memory>
#include <string>

namespace TgBot {

/**
 * @brief The message was originally sent on behalf of a chat to a group chat.
 *
 * @ingroup types
 */
class MessageOriginChat : public MessageOrigin {

public:
    static const std::string TYPE;

    typedef std::shared_ptr<MessageOriginChat> Ptr;

    MessageOriginChat() {
        this->type = TYPE;
    }

    /**
     * @brief Chat that sent the message originally
     */
    Chat::Ptr senderChat;

    /**
     * @brief Optional. For messages originally sent by an anonymous chat administrator, original message author signature
     */
    std::string authorSignature;
};
}

#endif //TGBOT_MESSAGEORIGINCHAT_H