There is an issue with attaching files inside the bot for the user #4034
Labels
bug
Indicates an unexpected problem or an unintended behavior.
needs-triage
The issue has just been created and it has not been reviewed by the team.
code of attachment:
def create_file_attachment(self, file_path):
with open(file_path, "rb") as file_stream:
file_data = file_stream.read()
attachment = Attachment(
name=os.path.basename(file_path),
content_type="application/octet-stream",
content=file_data
)
return attachment
The text was updated successfully, but these errors were encountered: