HI,
does your log show the action or some errors? Did you try switching php version and with another image?
Thread Starter
saba2
(@saba2)
Hi ,
I have errors ! and I have not erros ! but
picture not send yet !
with php ver 5.3 and 5.5 and 5.6 !!
but can you send a sample data I dont understand what type on text area !
I use image upload of wp ? or type a command !
please send a template , or sample data . thanks
Hi,
the image must be set as featured image in your command post. The title is the text you want to reply to (eg. “/help”) and in the text area you can set the text of the message.
Thread Starter
saba2
(@saba2)
Hi again ,
thats right , I do all you say and check all section of command this :
all commands have a picture on : “featured image” not send any thing!!
log file :
>>>> 02/26/2016 16:15:36 92472080 /image
dont send any thing !!
php vergen cheked by 5.3 and 5.5 and 5.6.
how can I resolve this ?!
Is there something after that log line? >>>> means “incoming message” and you could have a send line too 🙂
Do you have a command with the title /image ?
Does it work if you don’t have a featured image in the command? (without it, the message will be sent as plain text)
Thread Starter
saba2
(@saba2)
when I “Remove featured image” on “/image” command , the massage text is work with robot commands .
log file :
<<<< Text 02/26/2016 21:04:56 92472080 tasvire matn…
>>>> 02/26/2016 21:04:56 92472080 /image
but when set a picture on “featured image” the command not work!
I can send you the link of wp admin to see the settings , please send a mail for me.
and my second question is :
can we send a massage to all robot users a massage with picture?
the outstanding image is added , the text is placed. but equally not send anything with the command
Thread Starter
saba2
(@saba2)
I have this problem too! but marco dont atention to this reports , i think we can help him to have a better plugins ,
I try with https hosts , anf webhook method dont send any commands! it was confusing us!
@marco milesi
$bot_url = “https://api.telegram.org/bot<bot_id>/”;
$url = $bot_url . “sendPhoto?chat_id=” . $chat_id ;
$post_fields = array(‘chat_id’ => $chat_id,
‘photo’ => new CURLFile(realpath(“/path/to/image.png”))
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
“Content-Type:multipart/form-data”
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
$output = curl_exec($ch);
its work in php