leaveChat

Use this method for your bot to leave a group, supergroup or channel. Returns True on success.

Api reference

Parameters

chatId

Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)