PoC suggesting posts to channels.

This commit is contained in:
John Preston
2025-06-13 14:39:30 +04:00
parent 8dbc175c02
commit 7e5a29a5cc
42 changed files with 712 additions and 58 deletions
@@ -2114,9 +2114,13 @@ bool SessionController::switchInlineQuery(
&& to.currentReplyTo.quote.empty()) {
to.currentReplyTo.messageId.msg = MsgId();
}
if (!history->suggestDraftAllowed()) {
to.currentSuggest = SuggestPostOptions();
}
auto draft = std::make_unique<Data::Draft>(
textWithTags,
to.currentReplyTo,
to.currentSuggest,
cursor,
Data::WebPageDraft());