Skip to content

Channel.GetChannelHistory

Get Channel past messages

HTTP request

GET https://gn.omega.kklab.com/v1/app/{app_id}/api/d/channels/{channel_id}/history

Path parameters

Parameters Description
app_id string
Required. Application ID
channel_id string
Required. Channel ID

Query parameters

Parameters Description
next_id string
Optional. Next page token id

Authorization

scope(manage)

Request body

empty.

Response body

{
  "channel_id": string,
  "count": int,
  "messages": [ { object(TransitFrame) } ],
  "next_id": string,
  "timestamp": int64
}

Fields

Fields Description
channel_id string
Channel ID
count int
Channel history message count
messages object (TransitFrame)
Channel history messages
next_id string
Optional. Next page token id
timestamp int64
Request timestamp of unix nano time

Example

{
    "channel_id": "2l3P6cqmDsFhk4duBS4RWjDzVJ9uJNE2VF",
    "count": 7,
    "messages": [
        {
            "i": 87515,
            "c": "ClassNotification",
            "n": "ChannelMessage",
            "d": {
                "o": 23271776271,
                "ch": "2l3P6cqmDsFhk4duBS4RWjDzVJ9uJNE2VF",
                "fs": "37sJKvP5QB2ZoZodX6vq8wNTWlFr2nD9VRsBaA",
                "sub": "speedchat-official",
                "sn": "admin",
                "m": "hello",
                "mta": {
                    "t": 100,
                    "v": 2
                }
            },
            "t": 1661161963281393431,
            "m": "Fw2iAR80I5D65asze116LA"
        },
        {
            "i": 24013,
            "c": "ClassNotification",
            "n": "ChannelMessage",
            "d": {
                "o": 26524107360,
                "ch": "2l3P6cqmDsFhk4duBS4RWjDzVJ9uJNE2VF",
                "fs": "37sJKvP5QB2ZoZodX6vq8wNTWlFr2nD9VRsBaA",
                "sub": "speedchat-official",
                "sn": "admin",
                "m": "pussy baby",
                "mta": {
                    "t": 100,
                    "v": 2
                },
                "sk": {
                    "tg": {
                        "d": {
                            "i": [
                                "1SOkawf8q0QGw2"
                            ]
                        }
                    }
                }
            },
            "t": 1661161966526439355,
            "m": "Fw2iAeEOyIr65asze116LA"
        },
        {
            "i": 27444,
            "c": "ClassNotification",
            "n": "ChannelOwnerMessage",
            "d": {
                "o": 40489524051,
                "ch": "2l3P6cqmDsFhk4duBS4RWjDzVJ9uJNE2VF",
                "fs": "37sPXGijB6z6Rt5bXbhY5UADWUU20v0AiXddGL",
                "sub": "speedchat-official",
                "sn": "admin",
                "m": "don't say that",
                "mta": {
                    "t": 100,
                    "v": 2
                }
            },
            "t": 1661161980545109004,
            "m": "Fw2iBSF2IG_65aszEQ_sCg"
        },
        {
            "i": 34310,
            "c": "ClassNotification",
            "n": "ChannelOwnerMessage",
            "d": {
                "o": 46798710737,
                "ch": "2l3P6cqmDsFhk4duBS4RWjDzVJ9uJNE2VF",
                "fs": "37sPXGijB6z6Rt5bXbhY5UADWUU20v0AiXddGL",
                "sub": "speedchat-official",
                "sn": "admin",
                "m": "hello",
                "mta": {
                    "mi": "Fw2iAR80I5D65asze116LA",
                    "r": "participator",
                    "s": "speedchat-official",
                    "sn": "admin",
                    "t": 910,
                    "v": 2
                }
            },
            "t": 1661161986800999325,
            "m": "Fw2iBpmEfA365aszEQ_sCg"
        },
        {
            "i": 76141,
            "c": "ClassRequest",
            "n": "SetChannelMeta",
            "d": {
                "o": 46837509293,
                "ch": "2l3P6cqmDsFhk4duBS4RWjDzVJ9uJNE2VF",
                "d": {
                    "twin": {
                        "blocked": [],
                        "isDarkMode": null,
                        "isSessionCounterVisible": null,
                        "muted": null,
                        "pinned": {
                            "m": "hello",
                            "mi": "Fw2iAR80I5D65asze116LA",
                            "r": "participator",
                            "s": "speedchat-official",
                            "sn": "admin",
                            "t": 1661161986675
                        },
                        "v": 1
                    }
                }
            },
            "t": 1661161986837310031,
            "m": "Fw2iBpvR6k_65aszEQ_sCg"
        },
        {
            "i": 12131,
            "c": "ClassNotification",
            "n": "GetChannelMeta",
            "d": {
                "o": 46837509293,
                "ch": "2l3P6cqmDsFhk4duBS4RWjDzVJ9uJNE2VF",
                "n": "yeti_za002_C",
                "ca": 1661161940,
                "d": {
                    "twin": {
                        "blocked": [],
                        "isDarkMode": null,
                        "isSessionCounterVisible": null,
                        "muted": null,
                        "pinned": {
                            "m": "hello",
                            "mi": "Fw2iAR80I5D65asze116LA",
                            "r": "participator",
                            "s": "speedchat-official",
                            "sn": "admin",
                            "t": 1661161986675
                        },
                        "v": 1
                    }
                }
            },
            "t": 1661161986837557186,
            "m": "Fw2iBpvVsE765aszEQ_sCg"
        },
        {
            "i": 15976,
            "c": "ClassNotification",
            "n": "CloseChannel",
            "d": {
                "o": 49168049265,
                "ch": "2l3P6cqmDsFhk4duBS4RWjDzVJ9uJNE2VF"
            },
            "t": 1661161989168052695,
            "m": "Fw2iBya-ED0"
        }
    ],
    "timestamp": 1661162015208512698
}