tdesktop/Telegram/SourceFiles/api/api_sending.h

41 lines
891 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
class History;
class DocumentData;
struct TextWithEntities;
namespace Api {
void SendExistingDocument(
not_null<History*> history,
2019-07-26 16:06:22 +00:00
not_null<DocumentData*> document,
bool silent = false);
2019-07-17 14:34:39 +00:00
void SendExistingDocument(
not_null<History*> history,
not_null<DocumentData*> document,
TextWithEntities caption,
2019-07-26 16:06:22 +00:00
MsgId replyToId = 0,
bool silent = false);
2019-07-17 14:34:39 +00:00
void SendExistingPhoto(
not_null<History*> history,
2019-07-26 16:06:22 +00:00
not_null<PhotoData*> photo,
bool silent = false);
2019-07-17 14:34:39 +00:00
void SendExistingPhoto(
not_null<History*> history,
not_null<PhotoData*> photo,
TextWithEntities caption,
2019-07-26 16:06:22 +00:00
MsgId replyToId = 0,
bool silent = false);
2019-07-17 14:34:39 +00:00
} // namespace Api