yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
forwardMessage.h
Go to the documentation of this file.
1 //
2 // Created by norbert on 27.08.17.
3 //
4 
5 #ifndef YATBCPP_FORWARDMESSAGE_H
6 #define YATBCPP_FORWARDMESSAGE_H
7 
8 #include <string>
9 #include <optional>
10 #include "telegram_methodJSON.h"
11 #include "../types/Message.h"
12 #include "../types/Chat.h"
13 
14 namespace yatbcpp{
15  class forwardMessage : public telegram_methodJSON<Message>{
16  public:
17  forwardMessage(std::string chat_id, std::string from_chat_id, std::int32_t message_id);
18  forwardMessage(std::int64_t chat_id, std::int64_t from_chat_id, std::int32_t message_id);
19  forwardMessage(Chat chat_id, Message from);
20  Json::Value toJson();
21 
22  const std::string &getChat_id() const;
23 
24  const std::string &getFrom_chat_id() const;
25 
26  const std::optional<bool> &getDisable_notification() const;
27 
28  std::int32_t getMessage_id() const;
29 
30  void setDisable_notification(const std::optional<bool> &disable_notification);
31 
32  private:
33  std::string chat_id;
34  std::string from_chat_id;
35  std::optional<bool> disable_notification;
36  std::int32_t message_id;
37  };
38 }
39 
40 
41 
42 #endif //YATBCPP_FORWARDMESSAGE_H
void setDisable_notification(const std::optional< bool > &disable_notification)
std::optional< bool > disable_notification
const std::string & getChat_id() const
Definition: Bot.h:27
const std::string & getFrom_chat_id() const
const std::optional< bool > & getDisable_notification() const
forwardMessage(std::string chat_id, std::string from_chat_id, std::int32_t message_id)
std::int32_t getMessage_id() const