@@ -40,6 +40,9 @@ def __init__(
4040 recipient_team_id : Optional [str ] = None ,
4141 recipient_user_id : Optional [str ] = None ,
4242 task_display_mode : Optional [str ] = None ,
43+ icon_emoji : Optional [str ] = None ,
44+ icon_url : Optional [str ] = None ,
45+ username : Optional [str ] = None ,
4346 ** kwargs ,
4447 ):
4548 """Initialize a new ChatStream instance.
@@ -57,6 +60,9 @@ def __init__(
5760 recipient_user_id: The encoded ID of the user to receive the streaming text. Required when streaming to channels.
5861 task_display_mode: Specifies how tasks are displayed in the message. A "timeline" displays individual tasks
5962 with text and "plan" displays all tasks together.
63+ icon_emoji: Emoji to use as the icon for this message. Overrides icon_url.
64+ icon_url: Image URL to use as the icon for this message.
65+ username: The bot's username to display.
6066 buffer_size: The length of markdown_text to buffer in-memory before calling a method. Increasing this value
6167 decreases the number of method calls made for the same amount of text, which is useful to avoid rate limits.
6268 **kwargs: Additional arguments passed to the underlying API calls.
@@ -70,6 +76,9 @@ def __init__(
7076 "recipient_team_id" : recipient_team_id ,
7177 "recipient_user_id" : recipient_user_id ,
7278 "task_display_mode" : task_display_mode ,
79+ "icon_emoji" : icon_emoji ,
80+ "icon_url" : icon_url ,
81+ "username" : username ,
7382 ** kwargs ,
7483 }
7584 self ._buffer = ""
0 commit comments