tdesktop/Telegram/SourceFiles/api/api_sending.h

46 lines
990 B
C
Raw Normal View History

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
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 {
struct MessageToSend;
struct SendAction;
2019-07-17 14:34:39 +00:00
void SendExistingDocument(
2021-11-18 07:03:03 +00:00
MessageToSend &&message,
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,
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
void FillMessagePostFlags(
const SendAction &action,
not_null<PeerData*> peer,
2021-07-28 11:55:02 +00:00
MessageFlags &flags);
2020-06-12 14:09:04 +00:00
void SendConfirmedFile(
not_null<Main::Session*> session,
const std::shared_ptr<FileLoadResult> &file);
2020-06-12 14:09:04 +00:00
2019-07-17 14:34:39 +00:00
} // namespace Api