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

Function createBotRequest

botlib.c:576–595  ·  view source on GitHub ↗

Create a bot request object and return it to the caller. */

Source from the content-addressed store, hash-verified

574
575/* Create a bot request object and return it to the caller. */
576BotRequest *createBotRequest(void) {
577 BotRequest *br = malloc(sizeof(*br));
578 br->request = NULL;
579 br->argc = 0;
580 br->argv = NULL;
581 br->from = 0;
582 br->from_username = NULL;
583 br->target = 0;
584 br->msg_id = 0;
585 br->file_id = NULL;
586 br->file_name = NULL;
587 br->file_mime = NULL;
588 br->file_size = 0;
589 br->type = TB_TYPE_UNKNOWN;
590 br->file_type = TB_FILE_TYPE_NONE;
591 br->bot_mentioned = 0;
592 br->mentions = NULL;
593 br->num_mentions = 0;
594 return br;
595}
596
597/* =============================================================================
598 * Database abstraction

Callers 1

botProcessUpdatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected