cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1051
Views
1
Helpful
4
Replies

Multiple file attachment while sending a message from bot

manichou
Cisco Employee
Cisco Employee

How to attach multiple files with a message while sending the message from the bot to a user. I checked https://developer.webex.com/docs/basics#message-attachments but couldn't find any info. Also, I tried sending multiple files in the same message but it failed. I am using Rest API in python

Please advice.

1 Accepted Solution

sandiban
Cisco Employee
Cisco Employee

Hello @manichou,
At this moment, you can't send multiple file attachments while sending a message through /create-a-message API.
This API is currently not configured to handle multiple file attachments in a single request, even if you try - it'd fail with a "400/Bad Request" error.

And the same has been documented in the attached screenshot as well.
Please let us know for any further assistance.

Regards!
Sandip

Screenshot 2024-07-30 at 11.23.05 AM.png

 

 

 

 

 

 

 

 

Please Note: If you think the solution provided above was helpful and satisfactory, please accept it as a Solution! However if you want to discuss it further and get yourself unblocked, please don't hesitate to reply back on this thread and we'll try to answer those queries by the soonest. In that case, once all of your queries are cleared - finally you can mark it as "Accepted as Solution"

View solution in original post

4 Replies 4

mparra.fusionet
Level 1
Level 1

@manichou  try with the official python api

IMG_6121.png

The sample above sends a message,  in the official python documentation section (create a message to be specific), there you can add the attachments=[strpathofattach1, strpathofattach2] list parameter to the create method and include the attachments in a single message

https://webexteamssdk.readthedocs.io/en/latest/user/api.html

sandiban
Cisco Employee
Cisco Employee

Hello @manichou,
At this moment, you can't send multiple file attachments while sending a message through /create-a-message API.
This API is currently not configured to handle multiple file attachments in a single request, even if you try - it'd fail with a "400/Bad Request" error.

And the same has been documented in the attached screenshot as well.
Please let us know for any further assistance.

Regards!
Sandip

Screenshot 2024-07-30 at 11.23.05 AM.png

 

 

 

 

 

 

 

 

Please Note: If you think the solution provided above was helpful and satisfactory, please accept it as a Solution! However if you want to discuss it further and get yourself unblocked, please don't hesitate to reply back on this thread and we'll try to answer those queries by the soonest. In that case, once all of your queries are cleared - finally you can mark it as "Accepted as Solution"

Most welcome @manichou !
Please let us know in case of any further queries.