Api icon indicating copy to clipboard operation
Api copied to clipboard

How to use editMessageMedia, can't add media?

Open Marty2Smarty opened this issue 2 years ago • 1 comments

How to use editMessageMedia, can't add media? $media = new \TelegramBot\Api\Types\InputMedia\ArrayOfInputMedia(); $media->addItem(new TelegramBot\Api\Types\InputMedia\InputMediaPhoto('https://........')); $bot->editMessageMedia($id, $getMessageId, $media , null, $keyboard); - doesn's work, plz help :D

Marty2Smarty avatar Nov 13 '22 20:11 Marty2Smarty

@Marty2Smarty This method is used to edit an InputMedia and not an ArrayOfInputMedia

bernard-ng avatar Dec 19 '22 00:12 bernard-ng