Request handling thread entry point. */
| 635 | |
| 636 | /* Request handling thread entry point. */ |
| 637 | void *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. |
nothing calls this directly
no test coverage detected