yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Functions
Bot.cc File Reference
#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"
Include dependency graph for Bot.cc:

Go to the source code of this file.

Functions

static size_t WriteCallback (void *contents, size_t size, size_t nmemb, void *stringptr)
 

Function Documentation

◆ 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
contentsthe curl values which are received
size
nmemb
stringptr,theuser data supplied later in curl settings
Returns

Definition at line 60 of file Bot.cc.