Skip to content

Conversation

@atis
Copy link

@atis atis commented Jun 2, 2018

Also need to update core:

`/**

  • GetFile

  • @param $file_id
    */
    function get_file($file_id)
    {
    // Create response content array.
    $reply_content = [
    'method' => 'getFile',
    'file_id' => $file_id,
    ];

    // Encode data to json.
    $reply_json = json_encode($reply_content);

    // Set header to json.
    header('Content-Type: application/json');

    // Write to log.
    debug_log($reply_json, '>');

    // Send request to telegram api.
    return curl_json_request($reply_json);
    }
    `

florianbecker pushed a commit that referenced this pull request Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant