def deleteChat(chat_id): if request.method == 'DELETE': return ChatHandler().deleteChat(chat_id)
def updateChat(chat_id, chat_name, admin_id): if request.method == 'PUT': return ChatHandler().updateChat(chat_id, chat_name, admin_id)
def createChat(chat_name, admin_id): if request.method == 'POST': return ChatHandler().createChat(chat_name, admin_id)
def getChatMedia(chat_id): if request.method == 'GET': return ChatHandler().getChatMedia(chat_id)
def getChatParticipants(chat_id): if request.method == 'GET': return ChatHandler().getChatParticipant(chat_id)
def getAllChatName(): if request.method == 'GET': return ChatHandler().getAllChat()