Improve managed bot creation.

This commit is contained in:
John Preston
2026-03-21 00:12:50 +07:00
parent 4069e4412c
commit d455d6ee32
13 changed files with 154 additions and 63 deletions
+11
View File
@@ -585,6 +585,17 @@ void ActivateBotCommand(ClickHandlerContext context, int row, int column) {
).done([=](const MTPUpdates &result) {
peer->session().api().applyUpdates(result);
}).send();
controller->showPeerHistory(createdBot);
controller->showToast({
.title = tr::lng_managed_bot_created_title(
tr::now,
lt_name,
createdBot->name()),
.text = { tr::lng_managed_bot_created_text(
tr::now,
lt_parent_name,
bot->name()) },
});
},
});
} break;