You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Since version 4.2, Bot API added poll message support, and PTB has also followed up with that in the API. However, as of PTB 12.2.0, ther is no support of poll messages in built in filters like other message types.
Describe the solution you'd like
Add a filter telegram.ext.filters.Filters.poll, namely:
class_Poll(BaseFilter):
name='Filters.poll'deffilter(self, message):
returnbool(message.poll)
poll=_Poll()
"""Messages that contain :class:`telegram.Poll`."""