from __future__ import annotations

from mtproto_mitm.tl.core_types import *
from mtproto_mitm.tl.tl_object import TLObject, tl_object, TLField
from typing import Optional, Any

# # # # # # # # # # # # # # # # # # # # # # # #
#               !!! WARNING !!!               #
#          This is a generated file!          #
# All changes made in this file will be lost! #
# # # # # # # # # # # # # # # # # # # # # # # #


@tl_object(id=0xafbc09db, name="types.MessageReplyHeader_167")
class MessageReplyHeader_167(TLObject):
    flags: Int = TLField(is_flags=True)
    reply_to_scheduled: bool = TLField(flag=1 << 2)
    forum_topic: bool = TLField(flag=1 << 3)
    quote: bool = TLField(flag=1 << 9)
    reply_to_msg_id: Optional[Int] = TLField(flag=1 << 4)
    reply_to_peer_id: Optional[TLObject] = TLField(flag=1 << 0)
    reply_from: Optional[TLObject] = TLField(flag=1 << 5)
    reply_media: Optional[TLObject] = TLField(flag=1 << 8)
    reply_to_top_id: Optional[Int] = TLField(flag=1 << 1)
    quote_text: Optional[str] = TLField(flag=1 << 6)
    quote_entities: Optional[list[TLObject]] = TLField(flag=1 << 7)
    quote_offset: Optional[Int] = TLField(flag=1 << 10)
