#include <iostream>
#include <functional>
#include <thread>
#include <condition_variable>
#include <vector>
#include <queue>
#include <curl/curl.h>
#include "exceptions/curl_error.h"
#include "exceptions/telegram_api_error.h"
#include "types/telegram_type.h"
#include "methods/getMe.h"
#include "types/User.h"
#include "types/Update.h"
#include "bot/Bot.h"
#include "methods/sendMessage.h"
Go to the source code of this file.
|
static size_t | WriteCallback (void *contents, size_t size, size_t nmemb, void *stringptr) |
|
◆ WriteCallback()
static size_t WriteCallback |
( |
void * |
contents, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
void * |
stringptr |
|
) |
| |
|
static |
String Writeback Method for Curl Related stuff Related: https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html >> This callback function gets called by libcurl as soon as there is data received that needs to be saved the size of that data is size multiplied with nmemb.
- Parameters
-
contents | the curl values which are received |
size | |
nmemb | |
stringptr,the | user data supplied later in curl settings |
- Returns
Definition at line 60 of file Bot.cc.