I
I
Igor Tkachenko2015-07-10 20:09:11
Telegram
Igor Tkachenko, 2015-07-10 20:09:11

How to send photo to telegram bot api?

I use this library to work with telegram bot api - https://github.com/HetIsNiels/TelegramWrapper , everything is fine, except that if I use the sendPhoto($caller->getChat()->id, $img_name, ' test');
($img_name is the full path to the image on the server), nothing happens, neither the image nor the message is sent

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Tkachenko, 2015-07-10
@foozzi

problem solved, you need to smoke about InputFile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question