diff --git a/TelegramBotBase/Controls/ButtonGrid.cs b/TelegramBotBase/Controls/ButtonGrid.cs index 472d15d..ed71393 100644 --- a/TelegramBotBase/Controls/ButtonGrid.cs +++ b/TelegramBotBase/Controls/ButtonGrid.cs @@ -76,6 +76,8 @@ namespace TelegramBotBase.Controls public String NoItemsLabel = Localizations.Default.Language["ButtonGrid_NoItems"]; + public String SearchLabel = Localizations.Default.Language["ButtonGrid_SearchFeature"]; + /// /// Layout of the buttons which should be displayed always on top. /// @@ -179,6 +181,12 @@ namespace TelegramBotBase.Controls { if (result.MessageText.StartsWith("🔍")) { + //Sent note about searching + if (this.SearchQuery == null) + { + await this.Device.Send(this.SearchLabel); + } + this.SearchQuery = null; this.Updated(); return; diff --git a/TelegramBotBase/Localizations/English.cs b/TelegramBotBase/Localizations/English.cs index b80b10a..220b367 100644 --- a/TelegramBotBase/Localizations/English.cs +++ b/TelegramBotBase/Localizations/English.cs @@ -11,13 +11,21 @@ namespace TelegramBotBase.Localizations Values["Language"] = "English"; Values["ButtonGrid_Title"] = "Menu"; Values["ButtonGrid_NoItems"] = "There are no items."; + Values["ButtonGrid_PreviousPage"] = "◀️"; + Values["ButtonGrid_NextPage"] = "▶️"; Values["ButtonGrid_CurrentPage"] = "Page {0} of {1}"; + Values["ButtonGrid_SearchFeature"] = "💡 Send a message to filter the list. Click the 🔍 to reset the filter."; Values["CalendarPicker_Title"] = "Pick date"; + Values["CalendarPicker_PreviousPage"] = "◀️"; + Values["CalendarPicker_NextPage"] = "▶️"; Values["TreeView_Title"] = "Select node"; Values["TreeView_LevelUp"] = "🔼 level up"; Values["ToggleButton_On"] = "On"; Values["ToggleButton_Off"] = "Off"; + Values["ToggleButton_OnIcon"] = "⚫"; + Values["ToggleButton_OffIcon"] = "⚪"; Values["ToggleButton_Title"] = "Toggle"; + Values["PromptDialog_Back"] = "Back"; Values["ToggleButton_Changed"] = "Setting changed"; } diff --git a/TelegramBotBase/Localizations/Localization.cs b/TelegramBotBase/Localizations/Localization.cs index 47cead8..aab42b8 100644 --- a/TelegramBotBase/Localizations/Localization.cs +++ b/TelegramBotBase/Localizations/Localization.cs @@ -24,6 +24,7 @@ namespace TelegramBotBase.Localizations Values["ButtonGrid_PreviousPage"] = "◀️"; Values["ButtonGrid_NextPage"] = "▶️"; Values["ButtonGrid_CurrentPage"] = "Seite {0} von {1}"; + Values["ButtonGrid_SearchFeature"] = "💡 Sende eine Nachricht um die Liste zu filtern. Klicke die 🔍 um den Filter zurückzusetzen."; Values["CalendarPicker_Title"] = "Datum auswählen"; Values["CalendarPicker_PreviousPage"] = "◀️"; Values["CalendarPicker_NextPage"] = "▶️";