TelegramBot / Api

Native PHP Wrapper for Telegram BOT API
MIT License
1.06k stars 324 forks source link

How to use editMessageMedia, can't add media? #381

Open Marty2Smarty opened 1 year ago

Marty2Smarty commented 1 year ago

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

bernard-ng commented 1 year ago

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