Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Unanswered
How to get room name from Stream ID


Hi Kunaal,
You can obtain information about a stream using the Stream Info endpoint.

Here is an example of how it can be used with the Python BDK

async def help_command(self, context: CommandContext):
	 room = await self.bdk.streams().get_stream(context.stream_id)
	 logging.debug(room)
	 return await self._messages.send_message(context.stream_id, "<messageML>Help command triggered</messageML>")

The returned results from the get_stream call is shown below. One of the attributes returned is the room name,

2023-03-13 15:19:40,517 - root - DEBUG - {'active': True,
 'cross_pod': True,
 'id': '3MKJswHOSZGM_smkhuG2vn___nkkg9oTdA',
 'last_message_date': 1678720779156,
 'origin': 'EXTERNAL',
 'room_attributes': {'name': 'My Room'},
 'stream_type': {'type': 'ROOM'}}

Hope that helps.

  
  
Posted one year ago
Edited one year ago
Vinay Mistry
23 × 2 Administrator
  
  

could you provide solution for above question in java language?

kunaal bokadia   one year ago Report
448 Views
0 Answers
one year ago
one year ago