Custom Commands Instructions
NeleBotsThese are the instructions for using the Custom commands plugin...
Commands
- /custom [Command] - Create a custom command.
[Command]: name of the command to create (e.g./test) - /alias [Alias command] [Command] - Create a custom alias command.
- /uncustom [Command/Alias] - Delete a custom command or a custom alias.
[Command/Alias]: name of the command to delete or alias command to unlink the alias (e.g./test) - /ccedit [Command/Alias] - Edit a custom command.
[Command]: name or alias of the command to edit (e.g./test) - /cclist - Get the list of custom commands.
Description
- Create all custom commands you want!
- Choose where your commands will be used!
- Choose who can use your commands!
- Choose how to anwer to your command!
- Add variables to your message!
- Add buttons below the messages!
- Add reply to the user message!
- Choose if the message display the web preview!
Buttons
The buttons allow to users to select different commands and functions with bot messages!
The total message for these buttons start with { and ends with }!
Call Commands with callback:
Buttons title _ ccb:yourCommand
After the click, it will be redirected toyourCommand!
TIP: You can also useccb:deleteMessageto delete messages from callback query.Buttons title _ url:t.me/YourBot
After the click , it will be redirected tot.me/YourBot!
TIP: You can also uset.me/YourBot?start=cc_yourCommandto create a redirect to the command in private chat!Buttons title _ inline:type
After the click, you will be redirected to the bot in unline mode, with the text "type"!Buttons title _ inline_share:type
After the click, you will be redirected to select a chat for the inline mode, with the text "type"!
Tags
The tags allow you to create variables in your messages!
Q: How to use tag in messages?
A: Write [variableType?variableName], if this variable exists return the content, if not exists return an empty value.
Q: Can I set another message if the variable not exists or is empty?
A: Yes, you can, write [variableType?variableName!Sorry! This variable is not available]
Q: Can I add a new variable if not exists?
A: Only if the variable is connected with Telegram or other Bot X Creator Plugins, else not.
These are all the tags available in message for custom commands!
- botx - Bot X Creator properties
[botx?version] - Get the current version of Bot X Client Bot. (e.g. 0.1.0)
[botx?releaseDate] - Get the release date of the last version of Bot X Client Bot. (e.g. 22/12/2020) - bot - Bot properties
[bot?id] - Get the Telegram ID of your Bot.
[bot?name] - Get the Bot name.
[bot?username] - Get the Bot username.
[bot?registrationDate] - Get the Bot creation date. (e.g. 22/12/2020) - user - User properties
[user?id] - Get the Telegram ID of the User.
[user?name] - Get the User name.
[user?surname] - Get the User surname.
[user?username] - Get the User username. - group - Group properties
[group?id] - Get the Telegram ID of the Group chat.
[group?title] - Get the Group name.
[group?username] - Get the Group username.
[group?description] - Get the Group description. - channel - Channel properties
[channel?id] - Get the Telegram ID of Channel chat.
[channel?title] - Get the Channel name.
[channel?username] - Get the Channel username.
[channel?description] - Get the Channel description.