fix(signal): align send() signature with base class (content, reply_to, metadata)
Signal's send() used 'text' instead of 'content' and 'reply_to_message_id' instead of 'reply_to', mismatching BasePlatformAdapter.send(). Callers in gateway/run.py use keyword args matching the base interface, so Signal's send() was missing its required 'text' positional arg. Fixes: 'SignalAdapter.send() missing 1 required positional argument: text'
This commit is contained in:
parent
cea78c5e27
commit
d6ab35c1a3
1 changed files with 4 additions and 4 deletions
|
|
@ -557,16 +557,16 @@ class SignalAdapter(BasePlatformAdapter):
|
||||||
async def send(
|
async def send(
|
||||||
self,
|
self,
|
||||||
chat_id: str,
|
chat_id: str,
|
||||||
text: str,
|
content: str,
|
||||||
reply_to_message_id: Optional[str] = None,
|
reply_to: Optional[str] = None,
|
||||||
**kwargs,
|
metadata: Optional[Dict[str, Any]] = None,
|
||||||
) -> SendResult:
|
) -> SendResult:
|
||||||
"""Send a text message."""
|
"""Send a text message."""
|
||||||
await self._stop_typing_indicator(chat_id)
|
await self._stop_typing_indicator(chat_id)
|
||||||
|
|
||||||
params: Dict[str, Any] = {
|
params: Dict[str, Any] = {
|
||||||
"account": self.account,
|
"account": self.account,
|
||||||
"message": text,
|
"message": content,
|
||||||
}
|
}
|
||||||
|
|
||||||
if chat_id.startswith("group:"):
|
if chat_id.startswith("group:"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue