Commit 50a65470 authored by Vincent Castellano's avatar Vincent Castellano

Fix reply ID

parent da885d59
......@@ -400,7 +400,8 @@ PyObject* get_message (struct tgl_message *M) {
}
if (M->reply_id) {
py_add_num_field (msg, "reply_to_id", M->reply_id);
snprintf (s, 30, "%lld", M->id);
py_add_string_field (msg, "reply_id", s);
struct tgl_message *MR = tgl_message_get (TLS, M->reply_id);
// Message details available only within session for now
if (MR) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment