I want to create a bot that kicks users from group based on certain condition (doesn't matter). My problem is - I found function that kicks users ( Bot.ban_chat_member() from python-telegram-bot ), but it kicks them based on their IDs. How to obtain someone's ID, when the only data I have is their username?
Thank you!
Tried methods from python-telegram-bot library