Eleirbag89 / TelegramBotPHP

A very simple PHP Telegram Bot API for sending messages.
http://eleirbag89.github.io/TelegramBotPHP
MIT License
812 stars 342 forks source link

send photo with base64 url #260

Closed ZalTVco closed 2 years ago

ZalTVco commented 2 years ago

Hi

how can send message with base64 url of image ? when i use base64, api not work

$content = array('chat_id' => $chat_id, 'photo' => $img ); $telegram->sendPhoto($content);

Eleirbag89 commented 2 years ago

Are you sure should work ? Can you link me the docs ? You can only use a file_id or an InputFile. Check the examples to see how I made it work

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.