Skip to content

Commit ab42ddb

Browse files
Niloth-ptheofficialvedantjoshi
authored andcommitted
google-calendar: Update outdated send_message parameters.
Remove "sender" parameter. Rename the "type" parameter value from "private" to "direct". Pass in a list to the "to" parameter. Switch to using the {} syntax for the dict. Co-authored-by: Vedant Joshi <[email protected]>
1 parent ca29929 commit ab42ddb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

zulip/integrations/google/google-calendar

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ def send_reminders() -> Optional[None]:
177177
else:
178178
message = "Reminder:\n\n" + "\n".join("* " + m for m in messages)
179179

180-
zulip_client.send_message(
181-
dict(type="private", to=options.zulip_email, sender=options.zulip_email, content=message)
182-
)
180+
zulip_client.send_message({"type": "direct", "to": [options.zulip_email], "content": message})
183181

184182
sent.update(keys)
185183

0 commit comments

Comments
 (0)