I'm developing a Telegram bot, which should be accessible only by its owner (only the owner would be able to add it to groups or see it in the search). Is it possible to achieve this via Telegram services (like BotFather) or should I check in my code if the one who's sending messages to the bot is the owner?
You can do this in setting, you need to check by yourself, just exit program if .message.from.id
not equal to yours.
You can disable join group via /setjoingroup
, but you can't invite bot to group either.