Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mautrix/appservice/api/intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ async def batch_send(
events: Iterable[BatchSendEvent],
state_events_at_start: Iterable[BatchSendStateEvent] = (),
beeper_new_messages: bool = False,
beeper_mark_read_by: UserID | None = None,
) -> BatchSendResponse:
"""
Send a batch of historical events into a room. See `MSC2716`_ for more info.
Expand Down Expand Up @@ -530,6 +531,8 @@ async def batch_send(
query["batch_id"] = batch_id
if beeper_new_messages:
query["com.beeper.new_messages"] = "true"
if beeper_mark_read_by:
query["com.beeper.mark_read_by"] = beeper_mark_read_by
resp = await self.api.request(
Method.POST,
path,
Expand Down