telegram-tt icon indicating copy to clipboard operation
telegram-tt copied to clipboard

Unable to fetch members of a chat

Open wengzilla opened this issue 9 months ago • 2 comments

For some of my group chats, I'm unable to fetch the member list of the group chat. It does, however, seem to work in the official Telegram Mac App. When I click on group chats where the member list fetch fails, I get the following error in console:

{
    "type": "CHANNEL_INVALID",
    "stack": "Error\n    at ve (https://web.telegram.org/k/mtproto.worker-CA0ZHRcC.js:1:3479)\n    at xd.processError (https://web.telegram.org/k/mtproto.worker-CA0ZHRcC.js:14:587721)\n    at xd.processMessage (https://web.telegram.org/k/mtproto.worker-CA0ZHRcC.js:14:590494)\n    at xd.processMessage (https://web.telegram.org/k/mtproto.worker-CA0ZHRcC.js:14:589417)\n    at xd.processMessage (https://web.telegram.org/k/mtproto.worker-CA0ZHRcC.js:14:588631)\n    at xd.onTransportData (https://web.telegram.org/k/mtproto.worker-CA0ZHRcC.js:14:583727)",
    "message": "CODE#400 CHANNEL_INVALID",
    "originalError": {
        "_": "rpc_error",
        "error_code": 400,
        "error_message": "CHANNEL_INVALID"
    },
    "code": 400
}

Is there an easy fix here?

wengzilla avatar May 23 '25 20:05 wengzilla

Me too

quochuy2405 avatar Jun 19 '25 08:06 quochuy2405

export function buildInputChat(chatId: string) { return BigInt(chatId); } My solution: export function buildInputChat(chatId: string) { return buildMtpPeerId(chatId, 'chat'); }

quochuy2405 avatar Jun 19 '25 09:06 quochuy2405