summaryrefslogtreecommitdiff
path: root/stat.c
diff options
context:
space:
mode:
authorYuuta Liang <yuuta@yuuta.moe>2023-08-19 13:51:41 +0800
committerYuuta Liang <yuuta@yuuta.moe>2023-08-19 13:51:41 +0800
commite5311d0810c6bcb77f872ade031357172b060d68 (patch)
tree5d27f5c9a16a21d41d3624fa4d7c55e60e778e3f /stat.c
parentce4bc9ac9ca3002b5ad524f0df07b199f7f5a36a (diff)
downloadksyxbot-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.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/stat.c b/stat.c
index 0e5906f..8739600 100644
--- a/stat.c
+++ b/stat.c
@@ -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(