Implemented button to delete all commands stored by BotFather

This commit is contained in:
Davte committed 2020-05-07 22:52:57 +02:00
1 parent a4079cf91d
commit 34cf987aa7
3 files changed
+96 -5

No files matched your search

+40
View File
@@ -95,6 +95,20 @@ default_admin_messages = {
'en': "↩️ Back",
'it': "↩️ Indietro",
},
'del': {
'done': {
'en': "✅ Commands deleted",
'it': "✅ Comandi rimossi",
},
'error': {
'en': "Something went wrong 😕",
'it': "Qualcosa è andato storto 😕",
},
'no_change': {
'en': "❌ No command stored",
'it': "❌ Nessun comando salvato",
},
},
'description': {
'en': "Edit the @BotFather commands",
'it': "Modifica i comandi con @BotFather",
@@ -103,6 +117,20 @@ default_admin_messages = {
'en': "❌ Error! ❌",
'it': "❌ Errore! ❌",
},
'get': {
'empty': {
'en': "No command set yet. You may use <code>✏️ Change</code> "
"button",
'it': "Nessun comando impostato ancora. Puoi usare il bottone "
"<code>✏️ Modifica</code>",
},
'panel': {
'en': "🤖 <b>BotFather commands</b> ℹ️\n\n"
"{commands}",
'it': "🤖 <b>Comandi su BotFather</b> ℹ️\n\n"
"{commands}",
},
},
'modes': [
{
'id': "get",
@@ -128,6 +156,18 @@ default_admin_messages = {
'it': "Modifica i comandi salvati su @BotFather"
},
},
{
'id': "del",
'name': {
'en': "Delete",
'it': "Cancella"
},
'symbol': "🗑",
'description': {
'en': "Delete commands stored by @BotFather",
'it': "Cancella i comandi salvati su @BotFather"
},
},
{
'id': "settings",
'name': {