Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left read-only access for public #312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

esuwu
Copy link
Contributor

@esuwu esuwu commented Dec 10, 2024

No description provided.

@esuwu esuwu changed the title Left read-only access to handlers for public Left read-only access for public Dec 10, 2024
Comment on lines +100 to +102
if !env.IsEligibleForAction(strconv.FormatInt(c.Chat().ID, 10)) {
return c.Send("Sorry, you have no right to change subscriptions")
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to create a telebot middleware and use it in handlers initialization block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants