Private Bot

Private Bot



⚑ ALL INFORMATION CLICK HERE πŸ‘ˆπŸ»πŸ‘ˆπŸ»πŸ‘ˆπŸ»

































Private Bot


Sign up with email
Sign up




Sign up with Google



Sign up with GitHub



Sign up with Facebook




Asked
3 years, 5 months ago


207k 38 38 gold badges 344 344 silver badges 339 339 bronze badges


5,792 1 1 gold badge 10 10 silver badges 30 30 bronze badges



Wouldn't exit program will stop the bot from working also on my private channel or group? Shouldn't I just ignore a /start command from unrecognized source?

–  Eitan
Nov 25 '17 at 20:39



@Eitan I didn't get you. :(

–  Sean
Nov 26 '17 at 5:48





420 5 5 silver badges 12 12 bronze badges


5,073 4 4 gold badges 21 21 silver badges 32 32 bronze badges


16.9k 12 12 gold badges 59 59 silver badges 87 87 bronze badges

[100% REMOTE] Senior Javascript Developer
Software Engineer, Android - Remote
Remote Angular middle dev for eHealth platform

Stack Overflow

Questions
Jobs
Developer Jobs Directory
Salary Calculator
Help
Mobile
Disable Responsiveness


Products

Teams
Talent
Advertising
Enterprise



Company

About
Press
Work Here
Legal
Privacy Policy
Terms of Service
Contact Us



Stack Exchange Network

Technology
Life / Arts
Culture / Recreation
Science
Other


Join Stack Overflow to learn, share knowledge, and build your career.
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.
There is nothing you can do with BotFather.
the only way is to check it inside your code.
You can check for the chat id (9 digit number) in your code.
For example, if you use this wrapper to create bot, you can use update.message.chat_id to get chat id. You can also check for the first name ( update.message.from_user.first_name ) and last name ( update.message.from_user.last_name ).
I started working a few weeks ago on telegram's bots. For that I've read in the specifications there is no way to create a private bot from botfather. The only way is using a custom command like /password to send a password to the bot and then keep the chat id of the client (when password is correct of course ...). Your bot need to accept commands only from memorized/autentificated chat id as you would do it in a classical way for any other application.
There's another option described in the telegram docs.
You can use a deeplink to get a unique key from the link and secure your bot.
Denying access in your code to anyone who does not have the key.

By clicking β€œPost Your Answer”, you agree to our terms of service , privacy policy and cookie policy

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo Β© 2021 Stack Exchange Inc; user contributions licensed under cc by-sa . revΒ 2021.2.2.38474


GitHub - iarna/ private - bot : A bot for managing access to private slack...
How to make a private Telegram bot accessible only by... - Stack Overflow
how to add a private bot in your server trick pc and mobile - YouTube
A Trick to Make your Telegram Bot Private - DEV Community
VoiceMaster - HomePage | I've purchased the bot how do I invite it?

Grannies Pov
Porno First Penetration
Girl Nudist Forum
Mature Oral
Saucony Jazz Original Outdoor

Report Page