LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple PHP POST Code to Labview Code

Hello Friends,

i did not get this simple PHP Code to an Labview Code.

 

<form action="https://api.telegram.org/bot<scripttoken>/sendDocument" method="post" enctype="multipart/form-data">

    <input type="text" name="chat_id" value="<chatId>" />
    <input type="file" name="document"  />
    <input type="submit" value="send" />

</form>

I have problems with the the file that i want to send. I got an error from the API back, that the path to my file is wrong. I do not know how to format it right for enctype="multipart/form-data".

labview.JPG

Can you help me out?

Here is the API description. You can check under sendDocument. But the parameters are ok, because the PHP is working.

https://core.telegram.org/bots/api

 

Regards

Tim

0 Kudos
Message 1 of 1
(2,840 Views)