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 /stat.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 'stat.c')
-rw-r--r-- | stat.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -47,10 +47,17 @@ void stat(struct TdMessage *msg) { sqlite3_reset(stmt_global_stat); goto send; send: - td_send(TdCreateObjectSendMessage(msg->chat_id_, - 0, - msg->id_, - TdCreateObjectMessageSendOptions(false, false, true, NULL), + td_send(TdCreateObjectSendMessage(msg->chat_id_, /* chat_id */ + 0, /* message_thread_id */ + (struct TdMessageReplyTo *) TdCreateObjectMessageReplyToMessage(msg->chat_id_, msg->id_), /* reply_to */ + TdCreateObjectMessageSendOptions( + false, /* disable_notification */ + false, /* from_background */ + true, /*protect_content */ + false, /* update_order_of_installed_sticker_sets */ + NULL, /* scheduling_state */ + 0 /* sending_id */ + ), NULL, (struct TdInputMessageContent *) TdCreateObjectInputMessageText( |