Update API scheme to layer 206.

This commit is contained in:
John Preston
2025-06-13 13:40:46 +04:00
parent 9290c90bdc
commit b965aecc6c
20 changed files with 152 additions and 25 deletions
+10
View File
@@ -14,6 +14,16 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace Api {
MTPSuggestedPost SuggestToMTP(const std::optional<SuggestOptions> &suggest) {
using Flag = MTPDsuggestedPost::Flag;
return suggest
? MTP_suggestedPost(
MTP_flags(suggest->date ? Flag::f_schedule_date : Flag()),
MTP_long(suggest->stars),
MTP_int(suggest->date))
: MTPSuggestedPost();
}
SendAction::SendAction(
not_null<Data::Thread*> thread,
SendOptions options)