From 98c0fd2187a19ceafafb508c5074f8dd8dcf257a Mon Sep 17 00:00:00 2001 From: jeorji <118723195+jeorji@users.noreply.github.com> Date: Mon, 27 Mar 2023 00:16:29 +0700 Subject: [PATCH 1/2] Update outdated documentation --- crates/teloxide-core/src/types/callback_query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/teloxide-core/src/types/callback_query.rs b/crates/teloxide-core/src/types/callback_query.rs index 2d1f5362..189c1f9b 100644 --- a/crates/teloxide-core/src/types/callback_query.rs +++ b/crates/teloxide-core/src/types/callback_query.rs @@ -40,8 +40,8 @@ pub struct CallbackQuery { /// [games]: https://core.telegram.org/bots/api#games pub chat_instance: String, - /// A data associated with the callback button. Be aware that a bad client - /// can send arbitrary data in this field. + /// A data associated with the callback button. Be aware that the message + /// originated the query can contain no callback buttons with this data. pub data: Option, /// A short name of a Game to be returned, serves as the unique identifier From d0365763972377eaa197467f5f37e01eef614090 Mon Sep 17 00:00:00 2001 From: jeorji <118723195+jeorji@users.noreply.github.com> Date: Mon, 27 Mar 2023 23:42:27 +0700 Subject: [PATCH 2/2] Remove outdated sentence --- crates/teloxide-core/src/types/callback_query.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/teloxide-core/src/types/callback_query.rs b/crates/teloxide-core/src/types/callback_query.rs index 189c1f9b..7dc8a422 100644 --- a/crates/teloxide-core/src/types/callback_query.rs +++ b/crates/teloxide-core/src/types/callback_query.rs @@ -40,8 +40,7 @@ pub struct CallbackQuery { /// [games]: https://core.telegram.org/bots/api#games pub chat_instance: String, - /// A data associated with the callback button. Be aware that the message - /// originated the query can contain no callback buttons with this data. + /// A data associated with the callback button. pub data: Option, /// A short name of a Game to be returned, serves as the unique identifier