summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-17 12:40:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-17 12:40:04 +0300
commit60a3976ffcba18b69e1da3a22e474e15b672aab2 (patch)
treedd0cfdcd7d93ea66564f639d8026301c2d2d39f7 /protocols/Telegram/src/proto.h
parenteb6981dc2146cc8718eb913605fac6b9c3746642 (diff)
for #3392 - binary files receiving for Telegram
Diffstat (limited to 'protocols/Telegram/src/proto.h')
-rw-r--r--protocols/Telegram/src/proto.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/protocols/Telegram/src/proto.h b/protocols/Telegram/src/proto.h
index fd08f08de2..657dce496a 100644
--- a/protocols/Telegram/src/proto.h
+++ b/protocols/Telegram/src/proto.h
@@ -59,19 +59,21 @@ struct TG_REQUEST_FULL : public TG_REQUEST_BASE
/////////////////////////////////////////////////////////////////////////////////////////
-struct TG_FILE_REQUEST
+struct TG_FILE_REQUEST : public MZeroedObject
{
enum Type { AVATAR = 1, FILE = 2 };
- TG_FILE_REQUEST(Type _1, const char *_2, const wchar_t *_3) :
+ TG_FILE_REQUEST(Type _1, TD::int53 _2, const char *_3) :
m_type(_1),
- m_uniqueId(_2),
- m_destPath(_3)
+ m_fileId(_2),
+ m_uniqueId(_3)
{}
Type m_type;
+ TD::int53 m_fileId;
CMStringA m_uniqueId;
- CMStringW m_destPath;
+ CMStringW m_destPath, m_fileName;
+ PROTOFILETRANSFERSTATUS pfts;
};
struct TG_USER