mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-28 03:59:24 +02:00
65 lines
1.2 KiB
C++
65 lines
1.2 KiB
C++
// This is the source code of AyuGram for Desktop.
|
|
//
|
|
// We do not and cannot prevent the use of our code,
|
|
// but be respectful and credit the original author.
|
|
//
|
|
// Copyright @Radolyn, 2023
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#define ID long long
|
|
|
|
template<typename TableName>
|
|
class AyuMessageBase
|
|
{
|
|
public:
|
|
ID fakeId;
|
|
ID userId;
|
|
ID dialogId;
|
|
ID groupedId;
|
|
ID peerId;
|
|
ID fromId;
|
|
ID topicId;
|
|
int messageId;
|
|
int date;
|
|
int flags;
|
|
int editDate;
|
|
int views;
|
|
int fwdFlags;
|
|
ID fwdFromId;
|
|
std::string fwdName;
|
|
int fwdDate;
|
|
std::string fwdPostAuthor;
|
|
int replyFlags;
|
|
int replyMessageId;
|
|
ID replyPeerId;
|
|
int replyTopId;
|
|
bool replyForumTopic;
|
|
int entityCreateDate;
|
|
std::string text;
|
|
std::vector<char> textEntities;
|
|
std::string mediaPath;
|
|
std::string hqThumbPath;
|
|
int documentType;
|
|
std::vector<char> documentSerialized;
|
|
std::vector<char> thumbsSerialized;
|
|
std::vector<char> documentAttributesSerialized;
|
|
std::string mimeType;
|
|
};
|
|
|
|
using DeletedMessage = AyuMessageBase<struct DeletedMessageTag>;
|
|
using EditedMessage = AyuMessageBase<struct EditedMessageTag>;
|
|
|
|
class DeletedDialog
|
|
{
|
|
public:
|
|
ID fakeId;
|
|
ID userId;
|
|
ID dialogId;
|
|
ID peerId;
|
|
int topMessage;
|
|
int lastMessageDate;
|
|
int flags;
|
|
int entityCreateDate;
|
|
};
|