Telegram APIChannels
channels.editBanned
Ban/unban/kick a user in a supergroup/channel.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workspaceId*string
Workspace ID
accountId*string
Telegram account ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
params*
Ban/unban/kick a user in a supergroup/channel.
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/channels.editBanned" \ -H "Content-Type: application/json" \ -d '{ "params": { "channel": { "_": "inputChannelEmpty" }, "participant": { "_": "inputPeerEmpty" }, "bannedRights": { "_": "chatBannedRights", "untilDate": 0 } } }'{ "result": { "_": "updatesTooLong" }}