40 lines
826 B
C
40 lines
826 B
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
|
||
|
|
||
|
namespace Api {
|
||
|
|
||
|
struct SendOptions {
|
||
|
TimeId scheduled = 0;
|
||
|
bool silent = false;
|
||
|
bool handleSupportSwitch = false;
|
||
|
bool removeWebPageId = false;
|
||
|
};
|
||
|
|
||
|
struct SendAction {
|
||
|
explicit SendAction(not_null<History*> history) : history(history) {
|
||
|
}
|
||
|
|
||
|
not_null<History*> history;
|
||
|
SendOptions options;
|
||
|
MsgId replyTo = 0;
|
||
|
bool clearDraft = false;
|
||
|
bool generateLocal = true;
|
||
|
};
|
||
|
|
||
|
struct MessageToSend {
|
||
|
explicit MessageToSend(not_null<History*> history) : action(history) {
|
||
|
}
|
||
|
|
||
|
SendAction action;
|
||
|
TextWithTags textWithTags;
|
||
|
WebPageId webPageId = 0;
|
||
|
};
|
||
|
|
||
|
} // namespace Api
|