mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Update API scheme to layer 143.
This commit is contained in:
@@ -75,7 +75,7 @@ SendMediaReady PreparePeerPhoto(
|
||||
MTP_int(dcId));
|
||||
|
||||
QString file, filename;
|
||||
int32 filesize = 0;
|
||||
int64 filesize = 0;
|
||||
QByteArray data;
|
||||
|
||||
return SendMediaReady(
|
||||
|
@@ -41,7 +41,7 @@ SendMediaReady PrepareRingtoneDocument(
|
||||
MTP_bytes(),
|
||||
MTP_int(base::unixtime::now()),
|
||||
MTP_string(filemime),
|
||||
MTP_int(content.size()),
|
||||
MTP_long(content.size()),
|
||||
MTP_vector<MTPPhotoSize>(),
|
||||
MTPVector<MTPVideoSize>(),
|
||||
MTP_int(dcId),
|
||||
@@ -191,8 +191,8 @@ void Ringtones::remove(DocumentId id) {
|
||||
}
|
||||
}
|
||||
|
||||
int Ringtones::maxSize() const {
|
||||
return int(base::SafeRound(_session->account().appConfig().get<double>(
|
||||
int64 Ringtones::maxSize() const {
|
||||
return int64(base::SafeRound(_session->account().appConfig().get<double>(
|
||||
"ringtone_size_max",
|
||||
100 * 1024)));
|
||||
}
|
||||
|
@@ -38,7 +38,7 @@ public:
|
||||
[[nodiscard]] rpl::producer<QString> uploadFails() const;
|
||||
[[nodiscard]] rpl::producer<DocumentId> uploadDones() const;
|
||||
|
||||
[[nodiscard]] int maxSize() const;
|
||||
[[nodiscard]] int64 maxSize() const;
|
||||
[[nodiscard]] int maxSavedCount() const;
|
||||
[[nodiscard]] int maxDuration() const;
|
||||
|
||||
|
Reference in New Issue
Block a user