go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.76k stars 889 forks source link

Example of kicking out users from group #583

Closed ariel17 closed 2 years ago

ariel17 commented 2 years ago

I can't figure out how to kick an user from a group. I found the KickChatMemberConfig structure but I don't know how to send the action to the group through the bot or tg client. Could you add an example please?

temamagic commented 2 years ago
bot.Request(tgbotapi.KickChatMemberConfig{})
ariel17 commented 2 years ago

Thank you!