amsync/obj.py
async def send(
        self,
        *msgs: list[str],
        files: str   | list[str] | None = None,
        type_: int   | None             = 0,
        embed: Embed | None             = None,
        reply: str   | None             = None,
        com:   str   | None             = None,
        chat:  str   | None             = None,
    ) -> Res | list[Res]:
        """
        Send a message, file, embed or reply

        #### reply

        Message id to reply
        """

        com   = com or actual_com
        chat  = chat or actual_chat
        files = to_list(files)

        if msgs:
            data = await self._CreateData.msg(type_, msgs, reply)
        elif files:
            data = await self._CreateData.file(files)
        else:
            data = await self._CreateData.embed(embed)

        async def foo(i) -> Res:
            return await _req(
                'post',
                f'x{com}/s/chat/thread/{chat}/message',
                data=i
            )

        return one_or_list(await gather(*[foo(i) for i in data]))

        Send a message, file, embed or reply

        #### reply

        Message id to reply
        
Send a message, file, embed or reply
reply

Message id to reply
Send a message file embed or reply reply Message id to reply
async def send(
        self,
        *msgs: list[str],
        files: str   | list[str] | None = None,
        type_: int   | None             = 0,
        embed: Embed | None             = None,
        reply: str   | None             = None,
        com:   str   | None             = None,
        chat:  str   | None             = None,
    ) -> Res | list[Res]:
        com   = com or actual_com
        chat  = chat or actual_chat
        files = to_list(files)
        if msgs:
            data = await self._CreateData.msg(type_, msgs, reply)
        elif files:
            data = await self._CreateData.file(files)
        else:
            data = await self._CreateData.embed(embed)
        async def foo(i) -> Res:
            return await _req(
                'post',
                f'x{com}/s/chat/thread/{chat}/message',
                data=i
            )
        return one_or_list(await gather(*[foo(i) for i in data]))
async def send ( self , * msgs : list [ str ] , files : str | list [ str ] | None = None , type_ : int | None = 0 , embed : Embed | None = None , reply : str | None = None , com : str | None = None , chat : str | None = None , ) -> Res | list [ Res ] : com = com or actual_com chat = chat or actual_chat files = to_list ( files ) if msgs : data = await self . _CreateData . msg ( type_ , msgs , reply ) elif files : data = await self . _CreateData . file ( files ) else : data = await self . _CreateData . embed ( embed ) async def foo ( i ) -> Res : return await _req ( 'post' , f'x{com}/s/chat/thread/{chat}/message' , data = i ) return one_or_list ( await gather ( * [ foo ( i ) for i in data ] ) )
Send a message, file, embed or reply
 reply
Send a message file embed or reply reply
"""
        Send a message, file, embed or reply

        #### reply

        Message id to reply
        """
self
msgs
list[str]
files
str   | list[str] | None
type_
int   | None
embed
Embed | None
reply
str   | None
com
str   | None
chat
str   | None