Added a few JSON examples
This commit is contained in:
parent
c756c6b1dc
commit
327b161b41
21
examples/commands.json
Normal file
21
examples/commands.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"help": {
|
||||
"scopes": [
|
||||
{
|
||||
"name": "BotCommandScopeDefault"
|
||||
},
|
||||
{
|
||||
"name": "BotCommandScopeChat",
|
||||
"chat_id": "owner"
|
||||
}
|
||||
]
|
||||
},
|
||||
"shutdown": {
|
||||
"scopes": [
|
||||
{
|
||||
"name": "BotCommandScopeChat",
|
||||
"chat_id": "owner"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
38
examples/config.json
Normal file
38
examples/config.json
Normal file
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
23
examples/locale.json
Normal file
23
examples/locale.json
Normal file
@ -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!"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user