TelegramSearch/src/message.h

17 lines
372 B
C++

#pragma once
#include <cstdint>
#include <string>
struct Message {
int64_t chatid;
int64_t messageid;
int64_t senderid;
std::string text;
std::string filename = ""; //empty filename = no file
bool isreply = false;
bool operator==(const Message& m) const;
bool operator!=(const Message& m) const;
bool operator<(const Message& m) const;
bool hasFile() const;
};