From 7d2a66069473e1d09f8069d659f18fb2905db61c Mon Sep 17 00:00:00 2001 From: Roland Scheffler Date: Wed, 16 Apr 2025 09:45:07 +0300 Subject: [PATCH] Implement "inquiries.getOne" route --- rocketchat_API/APISections/livechat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rocketchat_API/APISections/livechat.py b/rocketchat_API/APISections/livechat.py index 8208237..e4e86e6 100644 --- a/rocketchat_API/APISections/livechat.py +++ b/rocketchat_API/APISections/livechat.py @@ -16,6 +16,10 @@ def livechat_inquiries_take(self, inquiry_id, **kwargs): "livechat/inquiries.take", inquiryId=inquiry_id, kwargs=kwargs ) + def livechat_get_inquiries(self, roomId, **kwargs): + """Get Inquiry by Room ID""" + return self.call_api_get("livechat/inquiries.getOne", roomId=roomId, kwargs=kwargs) + def livechat_get_users(self, user_type, **kwargs): """Get a list of agents or managers.""" return self.call_api_get("livechat/users/{}".format(user_type), kwargs=kwargs)