tgbot 0.47.0

A Telegram Bot library
Documentation
{
  "http_method": "POST",
  "url_path": "sendDocument",
  "req_body": {
    "multipart": {
      "chat_id": 1,
      "document": "file-id",
      "allow_paid_broadcast": true,
      "business_connection_id": "id",
      "callback_query_id": "cqid",
      "caption": "Caption",
      "parse_mode": "Markdown",
      "disable_content_type_detection": true,
      "disable_notification": true,
      "direct_messages_topic_id": 1,
      "message_effect_id": "effect-id",
      "message_thread_id": 1,
      "protect_content": true,
      "receiver_user_id": 999,
      "reply_markup": {
        "force_reply": true
      },
      "reply_parameters": {
        "message_id": 1
      },
      "suggested_post_parameters": {},
      "thumbnail": "https://example.com/image.jpg"
    }
  },
  "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
      },
      "document": {
        "file_id": "file-id",
        "file_unique_id": "fuid",
        "thumbnail": {
          "file_id": "tfid",
          "file_unique_id": "tfuid",
          "width": 200,
          "height": 200
        },
        "file_name": "test",
        "mime_type": "application/pdf",
        "file_size": 10000
      },
      "caption": "test",
      "is_automatic_forward": false,
      "has_protected_content": false
    }
  }
}