mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme on layer 160: Replies.
This commit is contained in:
@@ -221,56 +221,6 @@ int PhotoSideLimit() {
|
||||
return PhotoSideLimit(SendLargePhotos.value());
|
||||
}
|
||||
|
||||
SendMediaPrepare::SendMediaPrepare(
|
||||
const QString &file,
|
||||
const PeerId &peer,
|
||||
SendMediaType type,
|
||||
MsgId replyTo)
|
||||
: id(base::RandomValue<PhotoId>())
|
||||
, file(file)
|
||||
, peer(peer)
|
||||
, type(type)
|
||||
, replyTo(replyTo) {
|
||||
}
|
||||
|
||||
SendMediaPrepare::SendMediaPrepare(
|
||||
const QImage &img,
|
||||
const PeerId &peer,
|
||||
SendMediaType type,
|
||||
MsgId replyTo)
|
||||
: id(base::RandomValue<PhotoId>())
|
||||
, img(img)
|
||||
, peer(peer)
|
||||
, type(type)
|
||||
, replyTo(replyTo) {
|
||||
}
|
||||
|
||||
SendMediaPrepare::SendMediaPrepare(
|
||||
const QByteArray &data,
|
||||
const PeerId &peer,
|
||||
SendMediaType type,
|
||||
MsgId replyTo)
|
||||
: id(base::RandomValue<PhotoId>())
|
||||
, data(data)
|
||||
, peer(peer)
|
||||
, type(type)
|
||||
, replyTo(replyTo) {
|
||||
}
|
||||
|
||||
SendMediaPrepare::SendMediaPrepare(
|
||||
const QByteArray &data,
|
||||
int duration,
|
||||
const PeerId &peer,
|
||||
SendMediaType type,
|
||||
MsgId replyTo)
|
||||
: id(base::RandomValue<PhotoId>())
|
||||
, data(data)
|
||||
, peer(peer)
|
||||
, type(type)
|
||||
, duration(duration)
|
||||
, replyTo(replyTo) {
|
||||
}
|
||||
|
||||
SendMediaReady::SendMediaReady(
|
||||
SendMediaType type,
|
||||
const QString &file,
|
||||
@@ -284,10 +234,8 @@ SendMediaReady::SendMediaReady(
|
||||
const MTPPhoto &photo,
|
||||
const PreparedPhotoThumbs &photoThumbs,
|
||||
const MTPDocument &document,
|
||||
const QByteArray &jpeg,
|
||||
MsgId replyTo)
|
||||
: replyTo(replyTo)
|
||||
, type(type)
|
||||
const QByteArray &jpeg)
|
||||
: type(type)
|
||||
, file(file)
|
||||
, filename(filename)
|
||||
, filesize(filesize)
|
||||
|
Reference in New Issue
Block a user