mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 06:37:24 +02:00
feat: show bot start token
This commit is contained in:
parent
23fb44a36b
commit
b15402dc72
1 changed files with 8 additions and 0 deletions
|
@ -3024,6 +3024,14 @@ void HistoryWidget::updateControlsVisibility() {
|
|||
} else if (isBotStart()) {
|
||||
toggle(_botStart);
|
||||
_discuss->hide();
|
||||
|
||||
const auto startToken = _peer->asUser()->botInfo->startToken;
|
||||
if (!startToken.isEmpty()) {
|
||||
const auto s = QString("%1 (%2)").arg(tr::lng_bot_start(tr::now).toUpper()).arg(startToken);
|
||||
_botStart->setText(s);
|
||||
} else {
|
||||
_botStart->setText(tr::lng_bot_start(tr::now).toUpper());
|
||||
}
|
||||
}
|
||||
_kbShown = false;
|
||||
_fieldAutocomplete->hide();
|
||||
|
|
Loading…
Add table
Reference in a new issue