@@ -136,6 +136,8 @@ pub struct Message {
136136 ///
137137 /// Available only for outgoing messages sent on behalf of the connected business account.
138138 pub sender_business_bot : Option < User > ,
139+ /// Tag or custom title of the sender of the message; for supergroups only.
140+ pub sender_tag : Option < String > ,
139141 /// Whether the caption must be shown above the message media.
140142 pub show_caption_above_media : Option < bool > ,
141143 /// Information about suggested post parameters if the message is a suggested post in a channel direct messages chat.
@@ -194,6 +196,7 @@ impl Message {
194196 reply_to_checklist_task_id : None ,
195197 sender_boost_count : None ,
196198 sender_business_bot : None ,
199+ sender_tag : None ,
197200 show_caption_above_media : None ,
198201 suggested_post_info : None ,
199202 via_bot : None ,
@@ -524,6 +527,19 @@ impl Message {
524527 self
525528 }
526529
530+ /// Sets a new sender tag.
531+ ///
532+ /// # Arguments
533+ ///
534+ /// * `value` - Tag or custom title of the sender of the message.
535+ pub fn with_sender_tag < T > ( mut self , value : T ) -> Self
536+ where
537+ T : Into < String > ,
538+ {
539+ self . sender_tag = Some ( value. into ( ) ) ;
540+ self
541+ }
542+
527543 /// Sets a new value for the `show_caption_above_media` flag.
528544 ///
529545 /// # Arguments
0 commit comments