Kevin
Kevin

Reputation: 33

Force subscribe to channel to use the bot [aiogram]

I have a simple chat-bot writed with aiogram for receiving messages from users and answering to them. I want to make sure that user is subscribed to a particular channel before he can use my bot. How can I implement that?

Upvotes: 3

Views: 3344

Answers (1)

Oleg
Oleg

Reputation: 619

Use getChatMember method and then check status field of the ChatMember

Upvotes: 2

Related Questions