да, точно, гдето даже встречал какие-то статьи, сейчас поищу инфуBeasT, ну ты пишешь плагин который будет в консоль отвечать
и парсишь потом rcon'ом(ты отправляешь команду - сервер тебе отвечает) =)
ok: false
error_code: 401
description: "Unauthorized"
Найн, я просто сменил токен!Проблема не в сокетах. Если сделать запрос вручную, отвечает след.:
Unauthorized - как-бы намекает.Код:ok: false error_code: 401 description: "Unauthorized"
ps\\
401 UNAUTHORIZED
There was an unauthorized attempt to use functionality available only to authorized users.
Examples of Errors:
- AUTH_KEY_UNREGISTERED: The key is not registered in the system
- AUTH_KEY_INVALID: The key is invalid
- USER_DEACTIVATED: The user has been deleted/deactivated
- SESSION_REVOKED: The authorization has been invalidated, because of the user terminating all sessions
- SESSION_EXPIRED: The authorization has expired
- ACTIVE_USER_REQUIRED: The method is only available to already activated users
- AUTH_KEY_PERM_EMPTY: The method is unavailble for temporary authorization key, not bound to permanent
{"ok":true,"result":{"message_id":2561,"from":{"id":234562352,"is_bot":true,"first_name":"Game Bar \"\u0422\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u044f \u041f\u041f\"","username":"username_bot"},"chat":{"id":-111111111111,"title":"\u0e51\u06e9\u06e9\u0e51Game Bar \"\u0422\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u044f \u041f\u041f\"\u0e51\u06e9\u06e9\u0e51","username":"ppzone","type":"supergroup"},"date":1505402471,"text":"go"}}