def tgread_date(self):
        """Reads and converts Unix time (used by Telegram)
           into a Python datetime object.
        """
        value = self.read_int()
        if value == 0:
            return None
        else:
            return datetime.fromtimestamp(value, tz=timezone.utc)
def tgread_date ( self ) : value = self . read_int ( ) if value == 0 : return None else : return datetime . fromtimestamp ( value , tz = timezone . utc )
Reads and converts Unix time (used by Telegram)
           into a Python datetime object.