patch a62e1a9973921a97198519dd5a74e1a4472b9364
Author: E. Bosch <presidev@AT@gmail.com>
Date: Wed Oct 11 00:35:28 CEST 2023
* telegram: Support for showing question and options of polls
hunk ./README.md 48
+- Polls (receive, show)
hunk ./telegram.py 761
- media_url_or_data = ''
+ media_url_or_data = self.handle_poll(message.media.poll)
hunk ./telegram.py 779
+ def handle_poll(self, poll):
+ text = poll.question
+ for ans in poll.answers:
+ text += '\n* ' + ans.text
+ return text
+