From 0553ca0c087430da58a042b93b5846b67d332430 Mon Sep 17 00:00:00 2001 From: Elmurod Talipov Date: Mon, 8 Nov 2021 15:15:19 +0900 Subject: [PATCH] Fix bug : caption is not correctly parsed --- src/telebot-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telebot-parser.c b/src/telebot-parser.c index d51a6b8..de951b6 100644 --- a/src/telebot-parser.c +++ b/src/telebot-parser.c @@ -619,7 +619,7 @@ telebot_error_e telebot_parser_get_message(struct json_object *obj, telebot_mess struct json_object *caption = NULL; if (json_object_object_get_ex(obj, "caption", &caption)) - msg->new_chat_title = TELEBOT_SAFE_STRDUP(json_object_get_string(caption)); + msg->caption = TELEBOT_SAFE_STRDUP(json_object_get_string(caption)); struct json_object *contact = NULL; if (json_object_object_get_ex(obj, "contact", &contact))