telegram-tt
telegram-tt copied to clipboard
Unable to fetch members of a chat
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?
Me too
export function buildInputChat(chatId: string) { return BigInt(chatId); } My solution: export function buildInputChat(chatId: string) { return buildMtpPeerId(chatId, 'chat'); }