2019-07-17 14:34:39 +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
|
|
|
|
|
|
|
|
class History;
|
2020-03-06 12:12:03 +00:00
|
|
|
class PhotoData;
|
2019-07-17 14:34:39 +00:00
|
|
|
class DocumentData;
|
2020-06-12 14:09:04 +00:00
|
|
|
struct FileLoadResult;
|
2019-07-17 14:34:39 +00:00
|
|
|
|
|
|
|
namespace Api {
|
|
|
|
|
2019-08-12 12:11:34 +00:00
|
|
|
struct MessageToSend;
|
2020-07-06 09:58:18 +00:00
|
|
|
struct SendAction;
|
2019-07-17 14:34:39 +00:00
|
|
|
|
|
|
|
void SendExistingDocument(
|
2019-08-12 12:11:34 +00:00
|
|
|
Api::MessageToSend &&message,
|
|
|
|
not_null<DocumentData*> document);
|
2019-07-17 14:34:39 +00:00
|
|
|
|
|
|
|
void SendExistingPhoto(
|
2019-08-12 12:11:34 +00:00
|
|
|
Api::MessageToSend &&message,
|
|
|
|
not_null<PhotoData*> photo);
|
2019-07-17 14:34:39 +00:00
|
|
|
|
2020-04-20 10:18:09 +00:00
|
|
|
bool SendDice(Api::MessageToSend &message);
|
2020-03-06 12:12:03 +00:00
|
|
|
|
2020-05-17 09:09:20 +00:00
|
|
|
void FillMessagePostFlags(
|
|
|
|
const SendAction &action,
|
|
|
|
not_null<PeerData*> peer,
|
|
|
|
MTPDmessage::Flags &flags);
|
|
|
|
|
2020-06-12 14:09:04 +00:00
|
|
|
void SendConfirmedFile(
|
|
|
|
not_null<Main::Session*> session,
|
2021-03-09 09:11:40 +00:00
|
|
|
const std::shared_ptr<FileLoadResult> &file);
|
2020-06-12 14:09:04 +00:00
|
|
|
|
2019-07-17 14:34:39 +00:00
|
|
|
} // namespace Api
|