@@ -232,6 +232,9 @@ class Chat(Object):
232232 paid_message_star_count (``int``, *optional*):
233233 Number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message.
234234
235+ has_automatic_translation (``bool``, *optional*):
236+ True, if automatic translation of messages is enabled in the channel.
237+
235238 full_name (``str``, *property*):
236239 Full name of the other party in a private chat, for private chats and bots.
237240
@@ -302,6 +305,7 @@ def __init__(
302305 gift_count : int = None ,
303306 can_send_gift : bool = None ,
304307 paid_message_star_count : int = None ,
308+ has_automatic_translation : bool = None ,
305309 _raw : Union [
306310 "raw.types.ChatInvite" ,
307311 "raw.types.Channel" ,
@@ -374,6 +378,7 @@ def __init__(
374378 self .gift_count = gift_count
375379 self .can_send_gift = can_send_gift
376380 self .paid_message_star_count = paid_message_star_count
381+ self .has_automatic_translation = has_automatic_translation
377382 self ._raw = _raw
378383
379384 @staticmethod
@@ -540,6 +545,7 @@ def _parse_channel_chat(client, channel: raw.types.Channel) -> "Chat":
540545 profile_color = types .ChatColor ._parse_profile_color (getattr (channel , "profile_color" , None )),
541546 emoji_status = types .EmojiStatus ._parse (client , channel .emoji_status ),
542547 paid_message_star_count = channel .send_paid_messages_stars ,
548+ has_automatic_translation = channel .autotranslation ,
543549 _raw = channel
544550 )
545551
0 commit comments