Implement a context menu item to send inline message without mentioning the bot
This commit is contained in:
parent
7505a6c6fc
commit
e88923e3af
4 changed files with 8 additions and 0 deletions
|
|
@ -3118,4 +3118,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
"ktg_mute_for_selected_time" = "For selected time";
|
"ktg_mute_for_selected_time" = "For selected time";
|
||||||
|
|
||||||
|
"ktg_send_hide_via_message" = "Send without 'via @bot'";
|
||||||
|
|
||||||
// Keys finished
|
// Keys finished
|
||||||
|
|
|
||||||
|
|
@ -223,5 +223,6 @@
|
||||||
"ktg_filters_hide_edit_toast": "Edit button is hidden.\nYou can enable it back in Kotatogram Settings.",
|
"ktg_filters_hide_edit_toast": "Edit button is hidden.\nYou can enable it back in Kotatogram Settings.",
|
||||||
"ktg_settings_telegram_sites_autologin": "Auto-login on Telegram sites",
|
"ktg_settings_telegram_sites_autologin": "Auto-login on Telegram sites",
|
||||||
"ktg_mute_for_selected_time": "For selected time",
|
"ktg_mute_for_selected_time": "For selected time",
|
||||||
|
"ktg_send_hide_via_message": "Send without 'via @bot'",
|
||||||
"dummy_last_string": ""
|
"dummy_last_string": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -223,5 +223,6 @@
|
||||||
"ktg_filters_hide_edit_toast": "Кнопка изменения скрыта.\nВы можете включить её обратно в настройках Kotatogram.",
|
"ktg_filters_hide_edit_toast": "Кнопка изменения скрыта.\nВы можете включить её обратно в настройках Kotatogram.",
|
||||||
"ktg_settings_telegram_sites_autologin": "Авто-вход на сайты Telegram",
|
"ktg_settings_telegram_sites_autologin": "Авто-вход на сайты Telegram",
|
||||||
"ktg_mute_for_selected_time": "На указанное время",
|
"ktg_mute_for_selected_time": "На указанное время",
|
||||||
|
"ktg_send_hide_via_message": "Отправить без \"через @bot\"",
|
||||||
"dummy_last_string": ""
|
"dummy_last_string": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -316,6 +316,10 @@ void Inner::contextMenuEvent(QContextMenuEvent *e) {
|
||||||
SendMenu::DefaultSilentCallback(send),
|
SendMenu::DefaultSilentCallback(send),
|
||||||
SendMenu::DefaultScheduleCallback(this, type, send));
|
SendMenu::DefaultScheduleCallback(this, type, send));
|
||||||
|
|
||||||
|
_menu->addAction(tr::ktg_send_hide_via_message(tr::now), [=] {
|
||||||
|
send({ .hideVia = true });
|
||||||
|
});
|
||||||
|
|
||||||
auto item = _rows[row].items[column];
|
auto item = _rows[row].items[column];
|
||||||
if (const auto previewDocument = item->getPreviewDocument()) {
|
if (const auto previewDocument = item->getPreviewDocument()) {
|
||||||
auto callback = [&](const QString &text, Fn<void()> &&done) {
|
auto callback = [&](const QString &text, Fn<void()> &&done) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue