2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-25 20:07:13 +00:00

58 lines
1.2 KiB
C
Raw Normal View History

2019-07-17 16:34:39 +02: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 16:12:03 +04:00
class PhotoData;
2019-07-17 16:34:39 +02:00
class DocumentData;
2020-06-12 18:09:04 +04:00
struct FileLoadResult;
2019-07-17 16:34:39 +02:00
namespace MTP {
class Error;
} // namespace MTP
namespace Data {
class LocationPoint;
} // namespace Data
2019-07-17 16:34:39 +02:00
namespace Api {
struct MessageToSend;
struct SendAction;
2019-07-17 16:34:39 +02:00
void SendExistingDocument(
Api::MessageToSend &&message,
not_null<DocumentData*> document,
Fn<void()> doneCallback = nullptr,
bool forwarding = false);
2019-07-17 16:34:39 +02:00
void SendExistingPhoto(
Api::MessageToSend &&message,
not_null<PhotoData*> photo,
Fn<void()> doneCallback = nullptr,
bool forwarding = false);
2019-07-17 16:34:39 +02:00
bool SendDice(Api::MessageToSend &message, Fn<void()> doneCallback = nullptr);
2020-03-06 16:12:03 +04:00
void FillMessagePostFlags(
const SendAction &action,
not_null<PeerData*> peer,
MTPDmessage::Flags &flags);
2020-06-12 18:09:04 +04:00
void SendConfirmedFile(
not_null<Main::Session*> session,
const std::shared_ptr<FileLoadResult> &file);
2020-06-12 18:09:04 +04:00
void SendLocationPoint(
const Data::LocationPoint &data,
const SendAction &action,
Fn<void()> done,
Fn<void(const MTP::Error &error)> fail);
2019-07-17 16:34:39 +02:00
} // namespace Api