File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,10 @@ json_t *json_pack_message (struct tgl_message *M) {
431
431
}
432
432
433
433
if (M -> reply_id ) {
434
- assert (json_object_set (res , "reply_id" , json_integer (M -> reply_id )) >= 0 );
434
+ tgl_message_id_t msg_id = M -> permanent_id ;
435
+ msg_id .id = M -> reply_id ;
436
+
437
+ assert (json_object_set (res , "reply_id" , json_string (print_permanent_msg_id (msg_id ))) >= 0 );
435
438
}
436
439
437
440
if (M -> flags & TGLMF_MENTION ) {
Original file line number Diff line number Diff line change @@ -482,7 +482,10 @@ void push_message (struct tgl_message *M) {
482
482
}
483
483
484
484
if (M -> reply_id ) {
485
- lua_add_num_field ("reply_id" , M -> reply_id );
485
+ tgl_message_id_t msg_id = M -> permanent_id ;
486
+ msg_id .id = M -> reply_id ;
487
+
488
+ lua_add_string_field ("reply_id" , print_permanent_msg_id (msg_id ));
486
489
}
487
490
488
491
if (M -> flags & TGLMF_MENTION ) {
You can’t perform that action at this time.
0 commit comments