#!/usr/bin/env php Usage: php test_api.php [url] [command] Examples: Create invite link: php test_api.php http://localhost:8000 "/invitelink___@mychannel___req123___y___VIP Link" Get link stats: php test_api.php http://localhost:8000 "/state___https://t.me/+xxxxx___@mychannel" Revoke link: php test_api.php http://localhost:8000 "/revoke___@mychannel___https://t.me/+xxxxx" Multiple commands: php test_api.php http://localhost:8000 "/invitelink___@ch1___r1___y___L1 /invitelink___@ch2___r2___n___L2"