2020-10-29 23:43:35 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "mtproto/sender.h"
|
|
|
|
|
|
|
|
class ApiWrap;
|
2020-10-30 01:07:04 +00:00
|
|
|
class DocumentData;
|
2020-10-29 23:43:35 +00:00
|
|
|
class PhotoData;
|
|
|
|
|
|
|
|
namespace Window {
|
|
|
|
class SessionController;
|
|
|
|
} // namespace Window
|
|
|
|
|
|
|
|
namespace Api {
|
|
|
|
|
|
|
|
class AttachedStickers final {
|
|
|
|
public:
|
|
|
|
explicit AttachedStickers(not_null<ApiWrap*> api);
|
|
|
|
|
|
|
|
void requestAttachedStickerSets(
|
|
|
|
not_null<Window::SessionController*> controller,
|
|
|
|
not_null<PhotoData*> photo);
|
|
|
|
|
2020-10-30 01:07:04 +00:00
|
|
|
void requestAttachedStickerSets(
|
|
|
|
not_null<Window::SessionController*> controller,
|
|
|
|
not_null<DocumentData*> document);
|
|
|
|
|
2020-10-29 23:43:35 +00:00
|
|
|
private:
|
2020-10-30 01:07:04 +00:00
|
|
|
void request(
|
|
|
|
not_null<Window::SessionController*> controller,
|
|
|
|
MTPmessages_GetAttachedStickers &&mtpRequest);
|
|
|
|
|
2020-10-29 23:43:35 +00:00
|
|
|
MTP::Sender _api;
|
|
|
|
mtpRequestId _requestId = 0;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Api
|