Пример #1
0
def deleteChat(chat_id):
    if request.method == 'DELETE':
        return ChatHandler().deleteChat(chat_id)
Пример #2
0
def updateChat(chat_id, chat_name, admin_id):
    if request.method == 'PUT':
        return ChatHandler().updateChat(chat_id, chat_name, admin_id)
Пример #3
0
def createChat(chat_name, admin_id):
    if request.method == 'POST':
        return ChatHandler().createChat(chat_name, admin_id)
Пример #4
0
def getChatMedia(chat_id):
    if request.method == 'GET':
        return ChatHandler().getChatMedia(chat_id)
Пример #5
0
def getChatParticipants(chat_id):
    if request.method == 'GET':
        return ChatHandler().getChatParticipant(chat_id)
Пример #6
0
def getAllChatName():
    if request.method == 'GET':
        return ChatHandler().getAllChat()