Fix reply ID
This commit is contained in:
parent
da885d595a
commit
50a654706b
@ -400,7 +400,8 @@ PyObject* get_message (struct tgl_message *M) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (M->reply_id) {
|
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);
|
struct tgl_message *MR = tgl_message_get (TLS, M->reply_id);
|
||||||
// Message details available only within session for now
|
// Message details available only within session for now
|
||||||
if (MR) {
|
if (MR) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user