(self, other: Any)
return self
将两个消息对象拼接。

        当 ``other`` 不是合法的消息（段）时，抛出 ``ValueError``。
将两个消息对象拼接。
将两个消息对象拼接。
def __iadd__(self, other: Any) -> 'Message':
        """
        将两个消息对象拼接。

        当 ``other`` 不是合法的消息（段）时，抛出 ``ValueError``。
        """
        if isinstance(other, Message):
            self.extend(other)
        elif isinstance(other, MessageSegment):
            self.append(other)
        elif isinstance(other, list):
            self.extend(map(MessageSegment, other))
        elif isinstance(other, dict):
            self.append(MessageSegment(other))
        elif isinstance(other, str):
            self.extend(Message._split_iter(other))
        else:
            raise ValueError('the addend is not a message')
        return self
def __iadd__ ( self , other : Any ) -> 'Message' : if isinstance ( other , Message ) : self . extend ( other ) elif isinstance ( other , MessageSegment ) : self . append ( other ) elif isinstance ( other , list ) : self . extend ( map ( MessageSegment , other ) ) elif isinstance ( other , dict ) : self . append ( MessageSegment ( other ) ) elif isinstance ( other , str ) : self . extend ( Message . _split_iter ( other ) ) else : raise ValueError ( 'the addend is not a message' ) return self