telegram api method · layer 134 · #d10dd71b
channels.deleteUserHistory
not in the latest layer 229: last defined in layer 134
definition
channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory;
parameters
| name | type | description |
|---|---|---|
channel | InputChannel | |
user_id | InputUser |
returns
errors (7)
| code | error | description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | USER_ID_INVALID | The provided user ID is invalid. |
| 403 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
history
present in layers 46–134
| id | layers |
|---|---|
| #d10dd71b | 46–134 |