Skip to content

sendMediaGroup 多个视频的时候报错,多个图片正常 #1161

@PrinceCoder8

Description

@PrinceCoder8

PHP version

7.4

irazasyed/telegram-bot-sdk version

3.9

Laravel version (if any)

No response

Code To Reproduce the bug

$telegram = new Telegram\Bot\Api(api_key);
$telegram
->setAsyncRequest(true)
->sendMediaGroup(['chat_id' => channel_id, 'media' => json_encode([
['type'=>'video' ,'media' => 'https://i.imgur.com/qAxrsIG.mp4', 'caption' => "Album caption"],
['type' => 'video' ,'media' => 'https://i.imgur.com/qAxrsIG.mp4']
])]);

发送多个视频的时候报错,但是多个图片的时候正常, 看了下调用的medis的url,都在正常的,浏览器都能正常打开视频

Error stacktrace (if any)

Bad Request: failed to send message #1 with the error message "Wrong file identifier/HTTP URL specified"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions