2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Added simple animation of stickers sending from inline bots.

This commit is contained in:
23rd
2022-02-11 07:40:11 +03:00
committed by John Preston
parent 2632ec45bd
commit 0a2fbb0d70
11 changed files with 66 additions and 10 deletions

View File

@@ -3616,14 +3616,17 @@ void ApiWrap::sendBotStart(not_null<UserData*> bot, PeerData *chat) {
void ApiWrap::sendInlineResult(
not_null<UserData*> bot,
not_null<InlineBots::Result*> data,
const SendAction &action) {
const SendAction &action,
std::optional<MsgId> localMessageId) {
sendAction(action);
const auto history = action.history;
const auto peer = history->peer;
const auto newId = FullMsgId(
peer->id,
_session->data().nextLocalMessageId());
localMessageId
? (*localMessageId)
: _session->data().nextLocalMessageId());
const auto randomId = base::RandomValue<uint64>();
auto flags = NewMessageFlags(peer);