DJTommek / better-location

Telegram bot for parsing and generating various of location formats.
https://t.me/BetterLocationBot
MIT License
7 stars 2 forks source link

Telegram - unable to handle poll event #112

Closed DJTommek closed 1 year ago

DJTommek commented 1 year ago

Example of error update data info:

{
  "update_id": 123456789,
  "poll": {
    "id": "1234567891234567890",
    "question": "Some question",
    "options": [
      {
        "text": "Some response 1",
        "voter_count": 1
      },
      {
        "text": "Some response 2",
        "voter_count": 0
      }
    ],
    "total_voter_count": 1,
    "is_closed": true,
    "is_anonymous": true,
    "type": "regular",
    "allows_multiple_answers": false
  }
}

For real example from prodution log see 2022-12-13 13-39-34

DJTommek commented 1 year ago

Fixed in c435ea7d103a2b804f4c5153272a04dfd12bc3d2.