4
31
Fork
You've already forked simplematrixbotlib
21

Feature request: reply in thread #102

Open
opened 2025年03月27日 13:55:40 +01:00 by mkuschel-dev · 0 comments
Contributor
Copy link
content['m.relates_to'] = {

In the mentioned line there is the possiblity to send a text message as reply to a previous message (event).
I would appreciate the feature be able to use the thread feature of matrix.

I would like to pass "rel_type": "m.thread" somehow, to specify the relation type.

Currently I am not sure whether loading another parameter on to the method
async def send_text_message(self, room_id: str, message: str, msgtype: str = "m.text", reply_to: str = ""):
The parameter would also be disabled by default e.g. reply_in_thread=False. I don't know if this is advisable or whether there should be a new method to reply, where thread would be a option like I just mentioned.

I look forward to any input, and would also try to implement it, if the feature is needed.

https://codeberg.org/imbev/simplematrixbotlib/src/commit/607963778a4d77f6a407b725f28e4d9265d7a090/simplematrixbotlib/api.py#L273 In the mentioned line there is the possiblity to send a text message as reply to a previous message (event). I would appreciate the feature be able to use the thread feature of matrix. I would like to pass `"rel_type": "m.thread"` somehow, to specify the relation type. Currently I am not sure whether loading another parameter on to the method `async def send_text_message(self, room_id: str, message: str, msgtype: str = "m.text", reply_to: str = ""):` The parameter would also be disabled by default e.g. `reply_in_thread=False`. I don't know if this is advisable or whether there should be a new method to reply, where thread would be a option like I just mentioned. I look forward to any input, and would also try to implement it, if the feature is needed.
Sign in to join this conversation.
No Branch/Tag specified
master
v3
send_reaction
v2.13.1
v2.13.0
v2.12.2
v2.12.1
v2.12.0
v2.11.0
v2.10.3
v2.10.2
v2.10.1
v2.10.0
v2.9.1
v2.9.0
v2.7.4
v2.7.3
v2.7.2
v2.7.0
v2.6.4
v2.6.3
v2.6.2
v2.6.1
v2.6.0
v1.6.0
v2.5.1
v2.5.0
v2.4.1
v2.4.0
v2.3.0
v2.2.0
v2.1.0
v2.0.0
v1.6.1
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.4.0
v1.3.3
v1.3.1
v1.3.0
v1.2.0
v1.3.2
v1.0.1
v1.0.0
v1.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
imbev/simplematrixbotlib#102
Reference in a new issue
imbev/simplematrixbotlib
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?