TelegramPM
Incompatible con la versión actual de PocketMine-MP — Could not load plugin 'TelegramPM': Incompatible API version (plugin requires one of: 3.0.0) · Probado en PocketMine-MP 5.50.0 (PHP 8.4.27).
TelegramPM
A PocketMine-MP Plugin that connect PM Server <-> Telegram
Setting
See Step by setup
API
send message
\alvin0319\TelegramBot\TelegramBot::getInstance()->sendMessage("your message", "chat id")
Event
\alvin0319\TelegramBot\event\MessageReceiveEvent
\alvin0319\TelegramBot\event\MessageSendEvent
Note on use
After restarting the server and before running commands on the bot, you must log in with /login
Welcome, username
If you see this, you are successfully logged in.
Command can be used as /execute
Warning
YOU SHOULD NOT LEAK YOUR BOT'S TOKEN OR NAME. PASSWORD ENTRY IS REQUIRED, BUT THIS IS NOT SAFE.
Test