2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Update API scheme to layer 109.

This commit is contained in:
John Preston
2020-01-08 16:25:03 +03:00
parent ffe037f9f1
commit d57905c2b3
5 changed files with 19 additions and 21 deletions

View File

@@ -5847,7 +5847,10 @@ void ApiWrap::createPoll(
MTP_flags(sendFlags),
peer->input,
MTP_int(replyTo),
MTP_inputMediaPoll(PollDataToMTP(&data)),
MTP_inputMediaPoll(
MTP_flags(0),
PollDataToMTP(&data),
MTPvector<MTPbytes>()), // correct_answers #TODO polls
MTP_string(),
MTP_long(rand_value<uint64>()),
MTPReplyMarkup(),
@@ -5926,7 +5929,10 @@ void ApiWrap::closePoll(not_null<HistoryItem*> item) {
item->history()->peer->input,
MTP_int(item->id),
MTPstring(),
MTP_inputMediaPoll(PollDataToMTP(poll)),
MTP_inputMediaPoll(
MTP_flags(0),
PollDataToMTP(poll),
MTPvector<MTPbytes>()), // correct_answers #TODO polls
MTPReplyMarkup(),
MTPVector<MTPMessageEntity>(),
MTP_int(0) // schedule_date