aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-08-20 12:10:28 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitb4c1ebeead35f84d50dee33a9bf6d314a84a3d86 (patch)
tree47e07e1c04d360168812d47f6dd3703eaa6456bd /typings
parent4e38811c1a97ed4217b8cf38aa0f82816e9f8513 (diff)
downloadwee-slack-b4c1ebeead35f84d50dee33a9bf6d314a84a3d86.tar.gz
Support sending and receiving typing
This does not support globally showing typing from direct messages, like the old wee-slack did, because that's not supported by WeeChats typing plugin. It only shows typing in the current buffer.
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_rtm/slack_rtm_message.pyi4
-rw-r--r--typings/websocket.pyi1
2 files changed, 3 insertions, 2 deletions
diff --git a/typings/slack_rtm/slack_rtm_message.pyi b/typings/slack_rtm/slack_rtm_message.pyi
index 0f8d397..7eb50f1 100644
--- a/typings/slack_rtm/slack_rtm_message.pyi
+++ b/typings/slack_rtm/slack_rtm_message.pyi
@@ -8,7 +8,7 @@ from slack_api.slack_conversations_history import (
SlackMessageThreadParentSubscribed,
SlackMessageWithFiles,
)
-from typing_extensions import Literal, TypedDict, final
+from typing_extensions import Literal, NotRequired, TypedDict, final
class SlackRtmHello(TypedDict):
type: Literal["hello"]
@@ -81,7 +81,7 @@ class SlackMessageReplied(TypedDict):
class SlackUserTyping(TypedDict):
type: Literal["user_typing"]
channel: str
- thread_ts: str
+ thread_ts: NotRequired[str]
id: int
user: str
diff --git a/typings/websocket.pyi b/typings/websocket.pyi
index 0b9b769..3e5d683 100644
--- a/typings/websocket.pyi
+++ b/typings/websocket.pyi
@@ -51,6 +51,7 @@ class WebSocketConnectionClosedException(WebSocketException): ...
class WebSocket:
sock: socket
+ def send(self, payload: str, opcode: int = ABNF.OPCODE_TEXT) -> int: ...
def ping(self, payload: str = ...) -> None: ...
def recv_data(
self, control_frame: bool