From 327b161b41bb2587af51c7467a5b2f616baa48dd Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 3 Jan 2024 22:45:39 +0100 Subject: [PATCH] Added a few JSON examples --- examples/commands.json | 21 +++++++++++++++++++++ examples/config.json | 38 ++++++++++++++++++++++++++++++++++++++ examples/locale.json | 23 +++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 examples/commands.json create mode 100644 examples/config.json create mode 100644 examples/locale.json diff --git a/examples/commands.json b/examples/commands.json new file mode 100644 index 0000000..8634ffa --- /dev/null +++ b/examples/commands.json @@ -0,0 +1,21 @@ +{ + "help": { + "scopes": [ + { + "name": "BotCommandScopeDefault" + }, + { + "name": "BotCommandScopeChat", + "chat_id": "owner" + } + ] + }, + "shutdown": { + "scopes": [ + { + "name": "BotCommandScopeChat", + "chat_id": "owner" + } + ] + } +} \ No newline at end of file diff --git a/examples/config.json b/examples/config.json new file mode 100644 index 0000000..7919804 --- /dev/null +++ b/examples/config.json @@ -0,0 +1,38 @@ +{ + "locale": "en", + "bot": { + "owner": 0, + "api_id": 0, + "api_hash": "", + "bot_token": "", + "workers": 1, + "max_concurrent_transmissions": 1, + "scoped_commands": true + }, + "reports": { + "chat_id": "owner" + }, + "disabled_plugins": [], + "commands": { + "help": { + "scopes": [ + { + "name": "BotCommandScopeDefault" + }, + { + "name": "BotCommandScopeChat", + "chat_id": "owner" + } + ] + }, + "shutdown": { + "scopes": [ + { + "name": "BotCommandScopeChat", + "chat_id": "owner" + } + ] + } + } +} + diff --git a/examples/locale.json b/examples/locale.json new file mode 100644 index 0000000..78e4c60 --- /dev/null +++ b/examples/locale.json @@ -0,0 +1,23 @@ +{ + "metadata": { + "flag": "🇬🇧", + "name": "English", + "codes": [ + "en" + ] + }, + "bot": { + "name": "Your Bot", + "about": "I'm a your bot. Nice to meet you!", + "description": "I'm just your bot. Yet nice to meet you!" + }, + "commands": { + "help": "Show help message" + }, + "messages": { + "help": "Sample Text" + }, + "callbacks": { + "sample": "This button is working!" + } +} \ No newline at end of file