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
|
|
|
|
|
2021-08-31 11:50:49 +00:00
|
|
|
namespace Main {
|
|
|
|
class Session;
|
|
|
|
} // namespace Main
|
|
|
|
|
2019-07-17 14:34:39 +00:00
|
|
|
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(
|
2021-11-18 07:03:03 +00:00
|
|
|
MessageToSend &&message,
|
2022-02-08 19:16:22 +00:00
|
|
|
not_null<DocumentData*> document,
|
|
|
|
std::optional<MsgId> localMessageId = std::nullopt);
|
2019-07-17 14:34:39 +00:00
|
|
|
|
|
|
|
void SendExistingPhoto(
|
2021-11-18 07:03:03 +00:00
|
|
|
MessageToSend &&message,
|
2022-02-08 19:16:22 +00:00
|
|
|
not_null<PhotoData*> photo,
|
|
|
|
std::optional<MsgId> localMessageId = std::nullopt);
|
2019-07-17 14:34:39 +00:00
|
|
|
|
2021-11-18 07:03:03 +00:00
|
|
|
bool SendDice(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,
|
2021-07-28 11:55:02 +00:00
|
|
|
MessageFlags &flags);
|
2020-05-17 09:09:20 +00:00
|
|
|
|
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
|