user3848207
user3848207

Reputation: 4897

Restrict other users from joining telegram bot

Suppose I created a telegram bot with the following info;

botname: name11
username: user22
bot_token: XXXX
chat_id: YYYYY

I want to restrict other users from joining. Only myself (username: myself) can join. Can this be done in telegram?

I am using python 3.7

Upvotes: 0

Views: 416

Answers (1)

tashakori
tashakori

Reputation: 2441

There is no such settings or functionality in Telegram bots(yet). You can put a simple checking in the first line of your handlers and only respond to the authorized UserIDs.

Upvotes: 1

Related Questions