Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antirez/botlib
/ functions
Functions
207 in github.com/antirez/botlib
⨍
Functions
207
◇
Types & classes
19
↓ 1 callers
Function
kvSetLen
Set the key to the specified value and expire time. An expire of zero * means the key should not be expired at all. Return 1 on success, or * 0 on e
sqlite_wrap.c:242
↓ 1 callers
Function
makeHTTPGETCall
Request the specified URL in a blocking way, returns the content (or * error string) as an SDS string. If 'resptr' is not NULL, the integer * will b
botlib.c:260
↓ 1 callers
Function
makeHTTPGETCallOpt
Like makeHTTPGETCall(), but the list of options will be concatenated to * the URL as a query string, and URL encoded as needed. * The option list ar
botlib.c:301
↓ 1 callers
Function
minify_string
cJSON.c:2807
↓ 1 callers
Function
parse_array
Build an array from input text. */
cJSON.c:1437
↓ 1 callers
Function
parse_number
Parse the input text to generate a number, and populate the result into item. */
cJSON.c:305
↓ 1 callers
Function
parse_object
Build an object from the text. */
cJSON.c:1597
↓ 1 callers
Function
print_array
Render an array to text */
cJSON.c:1535
↓ 1 callers
Function
print_number
Render the number nicely from the given item into a string. */
cJSON.c:545
↓ 1 callers
Function
print_object
Render an object to text. */
cJSON.c:1710
↓ 1 callers
Function
print_string
Invoke print_string_ptr (which is useful) on an item. */
cJSON.c:1020
↓ 1 callers
Function
readApiKeyFromFile
Check if a file named 'apikey.txt' exists, if so load the Telegram bot * API key from there. If the function is able to read the API key from * the
botlib.c:862
↓ 1 callers
Function
resetBotStats
botlib.c:877
↓ 1 callers
Function
sdsIncrLen
Increment the sds length and decrements the left free space at the * end of the string according to 'incr'. Also set the null term * in the new end
sds.c:333
↓ 1 callers
Function
sdsTest
sds.c:1132
↓ 1 callers
Function
sdscatrepr
Append to the sds string "s" an escaped string representation where * all the non-printable characters (tested with isprint()) are turned into * esc
sds.c:884
↓ 1 callers
Function
sdscatsds
Append the specified sds 't' to the existing sds 's'. * * After the call, the modified sds string is no longer valid and all the * references must
sds.c:420
↓ 1 callers
Function
sdscatvprintf
Like sdscatprintf() but gets va_list instead of being variadic. */
sds.c:522
↓ 1 callers
Function
sdscpylen
Destructively modify the sds string 's' to hold the specified binary * safe string pointed by 't' of length 'len' bytes. */
sds.c:426
↓ 1 callers
Function
sdsfreesplitres
Free the result returned by sdssplitlen(), or do nothing if 'tokens' is NULL. */
sds.c:871
↓ 1 callers
Function
sdssplitargs
Split a line into arguments, where every argument can be in the * following programming-language REPL-alike form: * * foo bar "newline are supporte
sds.c:959
↓ 1 callers
Function
sdsull2str
Identical sdsll2str(), but for unsigned long long type. */
sds.c:482
↓ 1 callers
Function
skip_multiline_comment
cJSON.c:2793
↓ 1 callers
Function
skip_oneline_comment
cJSON.c:2780
↓ 1 callers
Function
skip_utf8_bom
skip the UTF-8 BOM (byte order mark) if it is at the beginning of a buffer */
cJSON.c:1060
↓ 1 callers
Function
sqlInsert
Wrapper for sqlGenericQuery() returning the last inserted ID or 0 * on error. */
sqlite_wrap.c:171
↓ 1 callers
Function
sqlSelect
Wrapper for sqlGenericQuery() using varialbe number of args. * This is what you want when doing SELECT queries. */
sqlite_wrap.c:196
↓ 1 callers
Function
startBot
botlib.c:882
↓ 1 callers
Function
strmatch
Glob-style pattern matching. Return 1 on match, 0 otherwise. */
botlib.c:86
↓ 1 callers
Function
utf16_literal_to_utf8
converts a UTF-16 literal to UTF-8 * A literal can be one or two sequences of the form \uXXXX */
cJSON.c:648
↓ 1 callers
Function
xmalloc
botlib.c:210
↓ 1 callers
Function
xrealloc
botlib.c:219
Function
botHandleRequest
Request handling thread entry point. */
botlib.c:637
Function
botSendImage
Send an image using the sendPhoto endpoint. Return 1 on success, 0 * on error. */
botlib.c:337
Function
cJSON_AddArrayToObject
cJSON.c:2171
Function
cJSON_AddBoolToObject
cJSON.c:2111
Function
cJSON_AddFalseToObject
cJSON.c:2099
Function
cJSON_AddItemReferenceToObject
cJSON.c:2065
Function
cJSON_AddItemToObject
cJSON.c:2044
Function
cJSON_AddItemToObjectCS
Add an item to an object with constant string as key */
cJSON.c:2050
Function
cJSON_AddNullToObject
cJSON.c:2075
Function
cJSON_AddNumberToObject
cJSON.c:2123
Function
cJSON_AddObjectToObject
cJSON.c:2159
Function
cJSON_AddRawToObject
cJSON.c:2147
Function
cJSON_AddStringToObject
cJSON.c:2135
Function
cJSON_AddTrueToObject
cJSON.c:2087
Function
cJSON_Compare
cJSON.c:2977
Function
cJSON_CreateArrayReference
cJSON.c:2486
Function
cJSON_CreateDoubleArray
cJSON.c:2616
Function
cJSON_CreateFloatArray
cJSON.c:2576
Function
cJSON_CreateIntArray
Create Arrays: */
cJSON.c:2536
Function
cJSON_CreateObjectReference
cJSON.c:2475
Function
cJSON_CreateStringArray
cJSON.c:2656
Function
cJSON_CreateStringReference
cJSON.c:2463
Function
cJSON_DeleteItemFromArray
cJSON.c:2229
Function
cJSON_DeleteItemFromObject
cJSON.c:2248
Function
cJSON_DeleteItemFromObjectCaseSensitive
cJSON.c:2253
Function
cJSON_Duplicate
Duplication */
cJSON.c:2697
Function
cJSON_GetArraySize
Get Array size/item / object item. */
cJSON.c:1824
Function
cJSON_GetErrorPtr
cJSON.c:94
Function
cJSON_GetNumberValue
cJSON.c:109
Function
cJSON_GetStringValue
cJSON.c:99
Function
cJSON_HasObjectItem
cJSON.c:1918
Function
cJSON_InsertItemInArray
Replace array/object items with new ones. */
cJSON.c:2259
Function
cJSON_IsFalse
cJSON.c:2887
Function
cJSON_IsRaw
cJSON.c:2967
Function
cJSON_IsTrue
cJSON.c:2897
Function
cJSON_Minify
cJSON.c:2829
Function
cJSON_ParseWithLength
cJSON.c:1176
Function
cJSON_Print
Render a cJSON item/entity/structure to text. */
cJSON.c:1248
Function
cJSON_PrintBuffered
cJSON.c:1258
Function
cJSON_PrintPreallocated
cJSON.c:1288
Function
cJSON_PrintUnformatted
cJSON.c:1253
Function
cJSON_ReplaceItemInArray
cJSON.c:2337
Function
cJSON_ReplaceItemInObject
cJSON.c:2365
Function
cJSON_ReplaceItemInObjectCaseSensitive
cJSON.c:2370
Function
cJSON_SetNumberHelper
don't ask me, but the original cJSON_SetNumberValue returns an integer or double */
cJSON.c:382
Function
cJSON_SetValuestring
cJSON.c:400
Function
cJSON_Version
cJSON.c:124
Function
cJSON_malloc
cJSON.c:3102
Function
cron
This is just called every 1 or 2 seconds. */
mybot.c:80
Function
handleRequest
For each bot command, private message or group message (but this only works * if the bot is set as group admin), this function is called in a new thr
mybot.c:21
Function
internal_free
cJSON.c:169
Function
internal_malloc
work around MSVC error C2322: '...' address of dllimport '...' is not static */
cJSON.c:165
Function
internal_realloc
cJSON.c:173
Function
kvDel
Delete the key if it exists. */
sqlite_wrap.c:280
Function
main
mybot.c:85
Function
main
sds.c:1297
Function
makeHTTPGETCallWriterFILE
The callback writing the CURL reply to a file. */
botlib.c:247
Function
makeHTTPGETCallWriterSDS
The callback concatenating data arriving from CURL http requests into * a target SDS string. */
botlib.c:238
Function
sdsAllocPtr
Return the pointer of the actual SDS allocation (normally SDS strings * are referenced by the start of the string buffer). */
sds.c:306
Function
sdsAllocSize
Return the total size of the allocation of the specified sds string, * including: * 1) The sds header before the pointer. * 2) The string. * 3) Th
sds.c:299
Function
sdsRemoveFreeSpace
Reallocate the sds string so that it has no free space at the end. The * contained string remains not altered, but next concatenation operations * w
sds.c:255
Function
sds_free
sds.c:1124
Function
sds_malloc
Wrappers to the allocators used by SDS. Note that SDS will actually * just use the macros defined into sdsalloc.h in order to avoid to pay * the ove
sds.c:1122
Function
sds_realloc
sds.c:1123
Function
sdsclear
Modify an sds string in-place to make it empty (zero length). * However all the existing buffer is not discarded but set as free space * so that nex
sds.c:193
Function
sdsgrowzero
Grow the sds to have the specified length. Bytes that were not part of * the original length of the sds will be set to zero. * * if the specified l
sds.c:379
Function
sdsjoin
Join an array of C strings using the specified separator (also a C string). * Returns the result as an sds string. */
sds.c:1094
Function
sdsjoinsds
Like sdsjoin, but joins an array of SDS strings. */
sds.c:1106
← previous
next →
101–200 of 207, ranked by callers