Skip to content

Add a separate exception when poll is requested in group chat #270

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

Closed
MasterGroosha opened this issue Feb 2, 2020 · 1 comment
Closed
Assignees
Labels
enhancement Make it better!
Milestone

Comments

@MasterGroosha
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Write a /start handler which creates a keyboard with KeyboardButtonPollType button and sends it.
Try adding bot to a group and press /start
Result: aiogram.utils.exceptions.BadRequest: Poll can be requested in private chats only

Describe the solution you'd like
Since there are a lot of custom (?) exceptions supported in aiogram, I guess there is a place for another one, like PollRequestError or like that.

@JrooTJunior JrooTJunior added this to the 2.7 milestone Feb 22, 2020
@evgfilim1 evgfilim1 added the enhancement Make it better! label Mar 29, 2020
JrooTJunior added a commit that referenced this issue Apr 5, 2020
@JrooTJunior
Copy link
Member

Fixed in dev-2.x. Will be released soon

@JrooTJunior JrooTJunior self-assigned this Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make it better!
Projects
None yet
Development

No branches or pull requests

3 participants