This plugin allows you to control your server via telegram.
- Tested Minecraft Versions:
- Source Code:
Depends on TelegramBotsAPI
Basically all this plugin does right now - executes the command you send and returns console output (it waits `delay` milliseconds and then sends you console output)
- Type commands without / , like you do in usual console.
- For each server you run you will need different bot from BotFather
Optional, but very recommended part:
- 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 and it's dependencies to 'plugins' folder and run server once. Then stop the server and open config file(plugins/TGconsole/config.yml).
- Set values enabled and sendids to true
- Change values token and botName to your bot`s API token and username .
- Run the server
- PM your bot with message `/getid `
- You will recieve messange simular to this one:add personal ids of your admins to 'admins' list (you can remove default values from there now)
- Or you can simply put admin's @Username there, but it's less safe(usernames can be changed, user's ids always the same)
- restart the server
- Once you add all admins, set 'sendids' to false
- In dialog with BotFather type /setjoingroups , choose your bot and set it to Disable
- In dialog with BotFather type /setuserpic to set your bot's avatar
- Do not use 'debug' if you do not need to.
- Do not make 'delay' value less than 4000
All feachures and guide
If something doesn't work - enable debug in configs and try again, and if it still doesn't work - contact me and provide error logs with your bugreport, i will try to help you asap.
- More supported versions
- Customizable texts or localization support - ✔ DONE ✔
- Add some handy telegram stuff
- Configurable buttons - ✔ DONE ✔
- Add some screenshots
- Make code more clean and public it - ✔ DONE ✔
- If chat message contains more than 4000 symbols, it will give long error stacktrace in the log + message will not get send