Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Неотвечает #2

Description

@miztizm

Почему то все прошло гладко а бот то неотвечает
Может изза того что нету secretkey как у вас в другом примере handler.php?

нашел логи и судя по ним проблема в токене:

15:10:02 [_vkApi_call] : [ERROR] {"error":{"error_code":15,"error_msg":"Access denied: no access to call this method","request_params":[{"key":"oauth","value":"1"},{"key":"method","value":"photos.getMessagesUploadServer"},{"key":"peer_id","value":"396487030"},{"key":"v","value":"5.67"}]}}
15:10:02 [callback_handleEvent] : [ERROR] exception 'Exception' with message 'Invalid response for photos.getMessagesUploadServer request' in /api/vk_api.php:69
Stack trace:
#0 /api/vk_api.php(23): _vkApi_call('photos.getMessa...', Array)
#1 /bot/bot.php(22): vkApi_photosGetMessagesUploadServer(396487030)
#2 /bot/bot.php(8): _bot_uploadPhoto(396487030, '/var/www/bot...')
#3 /index.php(56): bot_sendMessage(396487030)
#4 /index.php(32): _callback_handleMessageNew(Array)
#5 /index.php(18): callback_handleEvent()
#6 {main}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions