Skip to content

Commit

Permalink
Uncommented fields in Message object since they're available now.
Browse files Browse the repository at this point in the history
  • Loading branch information
baderouaich committed Sep 24, 2023
1 parent 99f93d3 commit ed15ab3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/tgbotxx/objects/Message.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once
#include <tgbotxx/objects/Object.hpp>
#include <tgbotxx/objects/User.hpp>
#include <tgbotxx/objects/Chat.hpp>
#include <tgbotxx/objects/MessageEntity.hpp>
#include <tgbotxx/objects/Animation.hpp>
#include <tgbotxx/objects/Audio.hpp>
Expand Down Expand Up @@ -60,20 +61,20 @@ namespace tgbotxx {
/// the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators,
/// the linked channel for messages automatically forwarded to the discussion group. For backward compatibility,
/// the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
// Ptr<Chat> senderChat;
Ptr<Chat> senderChat;

/// @brief Date the message was sent in Unix time
std::time_t date;

/// @brief Conversation the message belongs to
// Ptr<Chat> chat;
Ptr<Chat> chat;

/// @brief Optional. For forwarded messages, sender of the original message
Ptr<User> forwardFrom;

/// @brief For messages forwarded from channels or from anonymous administrators,
/// information about the original sender chat
// Ptr<Chat> forwardFromChat;
Ptr<Chat> forwardFromChat;

/// @brief Optional. For messages forwarded from channels, identifier of the original message in the channel
std::int64_t forwardFromMessageId;
Expand Down

0 comments on commit ed15ab3

Please sign in to comment.