Returns URL with the chat statistics. Currently this method can be used only for channels
{schema}
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| dark | flags.0?true | Pass true if a URL with the dark theme must be returned |
| peer | InputPeer | Chat identifier |
| params | string | Parameters from tg://statsrefresh?params=****** link |
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |