First you have to finde the bot account in the group member list. Most of the bot account id ends with ‘bot’ .
After finding the bot click on the bot name to view the profile. Then click on the three dots on the top right to open the menu.
Then click on the ‘Stop bot’ item in the menu. Now bot stops sending and receiving message.
Now you can remove the bot account from the group like any othe users.