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

Added menu item to bot info for bot management.

This commit is contained in:
23rd
2023-04-09 20:36:39 +03:00
committed by John Preston
parent a0ca3beef8
commit 2276a4c9af
4 changed files with 9 additions and 2 deletions

View File

@@ -982,7 +982,9 @@ void Filler::addManageChat() {
}
const auto peer = _peer;
const auto navigation = _controller;
const auto text = (peer->isChat() || peer->isMegagroup())
const auto text = peer->isUser()
? tr::lng_manage_bot_title(tr::now)
: (peer->isChat() || peer->isMegagroup())
? tr::lng_manage_group_title(tr::now)
: tr::lng_manage_channel_title(tr::now);
_addAction(text, [=] {