mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-25 11:57:12 +00:00
61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
/*
|
|
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;
|
|
class PhotoData;
|
|
class DocumentData;
|
|
struct FileLoadResult;
|
|
|
|
namespace MTP {
|
|
class Error;
|
|
} // namespace MTP
|
|
|
|
namespace Data {
|
|
class LocationPoint;
|
|
} // namespace Data
|
|
|
|
namespace Api {
|
|
|
|
struct MessageToSend;
|
|
struct SendAction;
|
|
|
|
void SendExistingDocument(
|
|
Api::MessageToSend &&message,
|
|
not_null<DocumentData*> document,
|
|
Fn<void()> doneCallback = nullptr,
|
|
bool forwarding = false);
|
|
|
|
void SendExistingPhoto(
|
|
Api::MessageToSend &&message,
|
|
not_null<PhotoData*> photo,
|
|
Fn<void()> doneCallback = nullptr,
|
|
bool forwarding = false);
|
|
|
|
bool SendDice(
|
|
Api::MessageToSend &message,
|
|
Fn<void(const MTPUpdates &, mtpRequestId)> doneCallback = nullptr,
|
|
bool forwarding = false);
|
|
|
|
void FillMessagePostFlags(
|
|
const SendAction &action,
|
|
not_null<PeerData*> peer,
|
|
MTPDmessage::Flags &flags);
|
|
|
|
void SendConfirmedFile(
|
|
not_null<Main::Session*> session,
|
|
const std::shared_ptr<FileLoadResult> &file);
|
|
|
|
void SendLocationPoint(
|
|
const Data::LocationPoint &data,
|
|
const SendAction &action,
|
|
Fn<void()> done,
|
|
Fn<void(const MTP::Error &error)> fail);
|
|
|
|
} // namespace Api
|