@property
def chat_id(self):
    '\n        Returns the marked chat integer ID. Note that this value **will\n        be different** from `to_id` for incoming private messages, since\n        the chat *to* which the messages go is to your own person, but\n        the *chat* itself is with the one who sent the message.\n\n        TL;DR; this gets the ID that you expect.\n        '
    return (utils.get_peer_id(self._chat_peer) if self._chat_peer else None)
Returns the marked chat integer ID. Note that this value **will
be different** from `to_id` for incoming private messages, since
the chat *to* which the messages go is to your own person, but
the *chat* itself is with the one who sent the message.

TL;DR; this gets the ID that you expect.
@property
def chat_id(self):
    '\n        Returns the marked chat integer ID. Note that this value **will\n        be different** from `to_id` for incoming private messages, since\n        the chat *to* which the messages go is to your own person, but\n        the *chat* itself is with the one who sent the message.\n\n        TL;DR; this gets the ID that you expect.\n        '
    return (utils.get_peer_id(self._chat_peer) if self._chat_peer else None)