nodegin / tglib

TDLib (Telegram Database library) bindings for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to send InputPeer

sergeysova opened this issue · comments

commented

https://core.telegram.org/method/messages.deleteHistory

I try:

await client.fetch({
  '@type': 'deleteHistory',
  peer: -123123123,
  offset: 0,
})

But get:

[ 1][t 0][1521294648.291917086][ClientJson.cpp:78][&status.is_error()]  Failed to parse [request:{\042@type\042:\04
2deleteHistory\042,\042peer\042:-123123123,\042offset\042:0,\042@extra\042:\0421ad27c05-2ea5-428b-879f-4c1b4819
18de\042}] [Error : 0 : Unknown class]

Please checkout tdlib API documentation here:

https://core.telegram.org/tdlib/docs/classes.html