mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Improve managed bot creation.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user