Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment upload API improvements #50

Closed
wants to merge 6 commits into from
Closed

Attachment upload API improvements #50

wants to merge 6 commits into from

Conversation

chris00zeng
Copy link
Contributor

Creates new AttachFileResponse and ImageResponse objects that bots can yield instead of needing to use post_message_attachment directly

Moved post_message_attachment onto QueryRequest so developers don't need to find and pass in the message id and access key. Kept the old post_message_attachment on PoeBot for compatibility.

Summary: Each attachment upload needs context from the query to know
which message id and access key to use. Putting `post_message_attachment`
on `QueryRequest` means that the user no longer needs to pass in the
access key or message id
Summary: Add new `AttachFileResponse` and `ImageResponse` that bots can
yield to attach files and images to their message.
… pydantic model

Summary: doesn't need to be serializable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant