tgbot 0.47.0

A Telegram Bot library
Documentation
{
  "http_method": "POST",
  "url_path": "sendPoll",
  "req_body": {
    "multipart": {
      "chat_id": 1,
      "options": [
        {
          "text": "X"
        }
      ],
      "question": "Q"
    }
  },
  "rep_body": {
    "ok": true,
    "result": {
      "message_id": 1,
      "date": 0,
      "chat": {
        "type": "group",
        "id": 1,
        "title": "Test"
      },
      "from": {
        "id": 1,
        "first_name": "John",
        "is_bot": false
      },
      "poll": {
        "id": "poll-id",
        "question": "question",
        "options": [
          {
            "persistent_id": "opt-1",
            "text": "test 1",
            "voter_count": 1
          },
          {
            "persistent_id": "opt-2",
            "text": "test 2",
            "voter_count": 0
          }
        ],
        "total_voter_count": 1,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": false,
        "allows_revoting": false,
        "members_only": false
      },
      "is_automatic_forward": false,
      "has_protected_content": false
    }
  }
}