You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
19:12:55 [_vkApi_call] : [ERROR] {"error":{"error_code":100,"error_msg":"One of the parameters specified was missing or invalid: file is undefined","request_params":[{"key":"title","value":"Voice message"},{"key":"v","value":"5.67"},{"key":"method","value":"docs.save"},{"key":"oauth","value":"1"}]}}
19:12:55 [callback_handleEvent] : [ERROR] exception 'Exception' with message 'Invalid response for docs.save request' in /home/admin/web/public_html/weatherapp/www/api/vk_api.php:69
Stack trace:
#0 /home/admin/web/public_html/weatherapp/www/api/vk_api.php(45): _vkApi_call('docs.save', Array)
#1 /home/admin/web/public_html/weatherapp/www/bot/bot.php(41): vkApi_docsSave(NULL, 'Voice message')
#2 /home/admin/web/public_html/weatherapp/www/bot/bot.php(11): _bot_uploadVoiceMessage(189957065, '/home/admin/web...')
#3 /home/admin/web/public_html/weatherapp/www/index.php(56): bot_sendMessage(189957065)
#4 /home/admin/web/public_html/weatherapp/www/index.php(32): _callback_handleMessageNew(Array)
#5 /home/admin/web/public_html/weatherapp/www/index.php(18): callback_handleEvent()
#6 {main}
При исправлении ошибки в CURLfile (недостаточно аргументов) curl_setopt($curl, CURLOPT_POSTFIELDS, array('file' => new CURLfile($file_name)));
=> curl_setopt($curl, CURLOPT_POSTFIELDS, array('file' => new CURLfile($file_name, mime_content_type($file_name), 'file')));
Ошибка в логах меняется на
уникальный (в привязке к API_ID и ID отправителя) идентификатор, предназначенный для предотвращения повторной отправки одинакового сообщения. Сохраняется вместе с сообщением и доступен в истории сообщений.Заданный random_id используется для проверки уникальности за всю историю сообщений, поэтому используйте большой диапазон (до int64).целое число, доступен начиная с версии 5.45
При исправлении ошибки в CURLfile (недостаточно аргументов)
curl_setopt($curl, CURLOPT_POSTFIELDS, array('file' => new CURLfile($file_name)));
=>
curl_setopt($curl, CURLOPT_POSTFIELDS, array('file' => new CURLfile($file_name, mime_content_type($file_name), 'file')));
Ошибка в логах меняется на
Что не так?
The text was updated successfully, but these errors were encountered: