diff options
author | Yuuta Liang <yuuta@yuuta.moe> | 2023-08-19 13:51:41 +0800 |
---|---|---|
committer | Yuuta Liang <yuuta@yuuta.moe> | 2023-08-19 13:51:41 +0800 |
commit | e5311d0810c6bcb77f872ade031357172b060d68 (patch) | |
tree | 5d27f5c9a16a21d41d3624fa4d7c55e60e778e3f /query.c | |
parent | ce4bc9ac9ca3002b5ad524f0df07b199f7f5a36a (diff) | |
download | ksyxbot-e5311d0810c6bcb77f872ade031357172b060d68.tar ksyxbot-e5311d0810c6bcb77f872ade031357172b060d68.tar.gz ksyxbot-e5311d0810c6bcb77f872ade031357172b060d68.tar.bz2 ksyxbot-e5311d0810c6bcb77f872ade031357172b060d68.zip |
Update TDLib
Fix abort when disconnect
Version: sync with bot API
Diffstat (limited to 'query.c')
-rw-r--r-- | query.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -125,15 +125,15 @@ int handle_inline(struct TdUpdateNewInlineQuery *update) { t); } - td_send(TdCreateObjectAnswerInlineQuery(update->id_, - false, - (struct TdVectorInputInlineQueryResult *) + td_send(TdCreateObjectAnswerInlineQuery(update->id_, /* inline_query_id */ + false, /* is_personal */ + NULL, /* button */ + (struct TdVectorInputInlineQueryResult *) /* results */ TdCreateObjectVectorObject(effective_items_count, (struct TdObject **) results_inline), - 0, - NULL, - NULL, - NULL), + 0, /* cache_time */ + NULL /* next_offset */ + ), &cb_answer, NULL); @@ -146,6 +146,7 @@ int handle_inline(struct TdUpdateNewInlineQuery *update) { } int handle_inline_chosen(struct TdUpdateNewChosenInlineResult *update) { + LOGDV("Handling %s", update->result_id_); if (!update->result_id_ || update->result_id_[0] != 'x' || update->result_id_[1] != '_') return 0; |