Thanks for your patiance,
You should be using the Symphony BDK for your bot application (https://docs.developers.symphony.com/developer-tools/developer-tools) e.g. Symphony Java BDK (https://github.com/finos/symphony-bdk-java), as the older SDKs are no longer supported in Symphony.
For your first question - adding a bot into a different chat room will have different factors to consider - mainly the around the permissions.
The permission factors to consider would be:
- the bot's permission and what Symphony REST API endpoint has been permitted for use. (https://docs.developers.symphony.com/building-bots-on-symphony/configuration/bot-permissions)
- the chat room's permission (whether it is a 'public' or 'private' chat room).
- does the chat room's permission allow only the chat room's owner to add the users or bot to the chat room, or is the chat room open for new members to join the room freely.
- does the bot have the permission to use the 'OBO - On Behalf Of' permission.
Should the bot account have the correct permission - using the 'Add Member' endpoint (https://developers.symphony.com/restapi/reference/add-member) would enable the bot to add members to the chat room.
Using the OBO feature, with the correct setup preparation, entitlement and permission with the help of the Symphony Pod Administrator, the bot could act on behalf of the chat room owner to add the users or bot into the chat room. However, there are privacy concerns on a bot being added to a chat room where senstive and confidential information is being discussed. Therefore, the chat room owners may not want to allow other users or bots to be apart of the chat room. It would be advised to check your the Symphony Pod Administrator on the feasability of using OBO before proceeding down this option - as the bot may not be compliant to be a member of sensitive chat rooms.
For your second questions - using the Create Message V4 is the most commonly used Symphony REST API endpoint when sending messages (https://developers.symphony.com/restapi/reference/create-message-v4).
You can use the following List User Stream Symphony REST API endpoint (https://developers.symphony.com/restapi/reference/list-user-streams) to return back with the list of StreamID chat room conversations that the bot is a member of. If the bot has been added to the chat room - using the endpoint will provide the StreamID for those rooms.
You can then use the Room Info V3 Symphony REST API endpoint (https://developers.symphony.com/restapi/reference/room-info-v3) to validate the chat room information.
Hopefully that has answered your questions - if you still have any further questions please feel free to reach out to us again.