MCPcopy Index your code
hub / github.com/antirez/botlib / botHandleRequest

Function botHandleRequest

botlib.c:637–647  ·  view source on GitHub ↗

Request handling thread entry point. */

Source from the content-addressed store, hash-verified

635
636/* Request handling thread entry point. */
637void *botHandleRequest(void *arg) {
638 DbHandle = dbInit(NULL);
639 BotRequest *br = arg;
640
641 /* Parse the request as a command composed of arguments. */
642 br->argv = sdssplitargs(br->request,&br->argc);
643 Bot.req_callback(DbHandle,br);
644 freeBotRequest(br);
645 dbClose();
646 return NULL;
647}
648
649/* Get the updates from the Telegram API, process them, and return the
650 * ID of the highest processed update.

Callers

nothing calls this directly

Calls 4

dbInitFunction · 0.85
sdssplitargsFunction · 0.85
freeBotRequestFunction · 0.85
dbCloseFunction · 0.85

Tested by

no test coverage detected