2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-23 18:57:12 +00:00

57 lines
1.3 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;
struct FilePrepareResult;
2019-07-17 16:34:39 +02:00
2024-07-04 12:18:30 +04:00
namespace Data {
struct InputVenue;
} // namespace Data
namespace Main {
class Session;
} // namespace Main
2019-07-17 16:34:39 +02:00
namespace Api {
struct MessageToSend;
struct SendAction;
2019-07-17 16:34:39 +02:00
void SendExistingDocument(
2021-11-18 11:03:03 +04:00
MessageToSend &&message,
not_null<DocumentData*> document,
std::optional<MsgId> localMessageId = std::nullopt);
2019-07-17 16:34:39 +02:00
void SendExistingPhoto(
2021-11-18 11:03:03 +04:00
MessageToSend &&message,
not_null<PhotoData*> photo,
std::optional<MsgId> localMessageId = std::nullopt);
2019-07-17 16:34:39 +02:00
2021-11-18 11:03:03 +04:00
bool SendDice(MessageToSend &message);
2020-03-06 16:12:03 +04:00
2024-07-04 12:18:30 +04:00
// We can't create Data::LocationPoint() and use it
// for a local sending message, because we can't request
// map thumbnail in messages history without access hash.
void SendLocation(SendAction action, float64 lat, float64 lon);
void SendVenue(SendAction action, Data::InputVenue venue);
void FillMessagePostFlags(
const SendAction &action,
not_null<PeerData*> peer,
2021-07-28 14:55:02 +03:00
MessageFlags &flags);
2020-06-12 18:09:04 +04:00
void SendConfirmedFile(
not_null<Main::Session*> session,
const std::shared_ptr<FilePrepareResult> &file);
2020-06-12 18:09:04 +04:00
2019-07-17 16:34:39 +02:00
} // namespace Api