Merge pull request #973 from Desiders/fix-set-chat-title-title-length

Change setChatTitle title length
This commit is contained in:
Waffle Maybe 2023-11-25 19:43:20 +00:00 committed by GitHub
commit cbee55056b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -2359,7 +2359,7 @@ Schema(
Param( Param(
name: "title", name: "title",
ty: String, ty: String,
descr: Doc(md: "New chat title, 1-255 characters") descr: Doc(md: "New chat title, 1-128 characters")
), ),
], ],
), ),

View file

@ -11,7 +11,7 @@ impl_payload! {
required { required {
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`) /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
pub chat_id: Recipient [into], pub chat_id: Recipient [into],
/// New chat title, 1-255 characters /// New chat title, 1-128 characters
pub title: String [into], pub title: String [into],
} }
} }