Answered
Adding bot into chat rooms
1.What is the best method to add a bot created according to SDK into multiple chat rooms where each room has different admin. Please provide a solution other than manually adding the bot into the room.
2.What is the best method to send a message into these rooms using bot (if using streamID/roomid of each room then how do we get stream/room Id for each different rooms that the bot is being added into).
92 Views
1
Answer
one month ago
4 days ago
Tags
could anybody answer this question please really wanted a solution. stuck because of this situtation.
Say bot receives a request to send message into a chatroom &its not a member of that chat room. 1Then our first aim should find the stream Id of the room and using roominfo find if it is private or public
2Once the chat room is public,after all perimision and approvals the bot is now acting as OBO for the admin and then add itself into the group chat
3then Create message and send via bot into the chat room.
hope this is the method that you send to add the bot into room.
Now ny question how to search room name and get is respective stream Id , find admin then how to assign permission to ...