A PocketMine-MP Plugin that connect PM Server <-> Telegram
See Step by setup
send message
\alvin0319\TelegramBot\TelegramBot::getInstance()->sendMessage("your message", "chat id")
Event
\alvin0319\TelegramBot\event\MessageReceiveEvent
\alvin0319\TelegramBot\event\MessageSendEvent
After restarting the server and before running commands on the bot, you must log in with /login <password>
.
Welcome, username
If you see this, you are successfully logged in.
Command can be used as /execute <command>
.
YOU SHOULD NOT LEAK YOUR BOT'S TOKEN OR NAME. PASSWORD ENTRY IS REQUIRED, BUT THIS IS NOT SAFE.