Basically all this plugin does right now - executes the command you send and returns console output (for some commands like "say" or "op" the server executes them but doesn't send any response to the bot).
Warning:
Type commands without / , like you do in usual console.
For each server you run you will need different bot from BotFather
Installation:
Firstly, contact @BotFather via telegram and get your bot's API token. Write it down. Also remember your bot's username.
DO NOT SHARE IT WITH ANYONE.
Download this plugin, save it to 'plugins' folder and run server once. Then stop the server and open config file (plugins/TelegramConnector/config.yml).
Change values token to your bot`s API token
Change value findChatId to true
Start the server
Send /start to your bot and copy the chatID number from the console output
Stop the server
Change value authorizedChatId to your telegram chatID
Change value findChatId to false
Start the server
Done!
Optional, but very recommended part:
After setup, go to dialog with BotFather and type /setjoingroups , choose your bot and set it to Disable
In dialog with BotFather type /setuserpic to set your bot's avatar
notificationsBotToken: ''
# Bot token provided by Botfather authorizedChatId: 0
# Your userID (follow the guide on Spigot to understand how to find it) findChatId: false
# It allows you to see the userID of the person who is writing to the bot (follow the guide to understand how it works)