• saba2

    (@saba2)


    Hello ,
    please guide how can send a picture wit ha command ?

    I think we need a data sample for this plugin ,to make a robot with nice actions.

    I try your guieds to add a image to a command , but it not send any thing!

    log file :
    Error: incorrect parameters type:####

    https://www.ads-software.com/plugins/telegram-bot/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Marco Milesi

    (@milmor)

    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

    Plugin Author Marco Milesi

    (@milmor)

    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 ?!

    Plugin Author Marco Milesi

    (@milmor)

    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?

    tonyway

    (@tonyway)

    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!

    tonyway

    (@tonyway)

    @marco milesi

    $bot_url = “https://api.telegram.org/bot<bot_id>/&#8221;;
    $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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Image send not work!!’ is closed to new replies.