From bacd84110e69fa591ae6a70e7b2de1007415ed89 Mon Sep 17 00:00:00 2001 From: Desiders Date: Sat, 25 Nov 2023 19:21:21 +0300 Subject: [PATCH] Change setChatTitle title length --- crates/teloxide-core/schema.ron | 2 +- crates/teloxide-core/src/payloads/set_chat_title.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/teloxide-core/schema.ron b/crates/teloxide-core/schema.ron index 0f9ef107..0b2d957f 100644 --- a/crates/teloxide-core/schema.ron +++ b/crates/teloxide-core/schema.ron @@ -2359,7 +2359,7 @@ Schema( Param( name: "title", ty: String, - descr: Doc(md: "New chat title, 1-255 characters") + descr: Doc(md: "New chat title, 1-128 characters") ), ], ), diff --git a/crates/teloxide-core/src/payloads/set_chat_title.rs b/crates/teloxide-core/src/payloads/set_chat_title.rs index b78ef9cc..82449d6b 100644 --- a/crates/teloxide-core/src/payloads/set_chat_title.rs +++ b/crates/teloxide-core/src/payloads/set_chat_title.rs @@ -11,7 +11,7 @@ impl_payload! { required { /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`) pub chat_id: Recipient [into], - /// New chat title, 1-255 characters + /// New chat title, 1-128 characters pub title: String [into], } }