Skip to content

Instantly share code, notes, and snippets.

@otnansirk
Created August 7, 2025 12:51
Show Gist options
  • Save otnansirk/759ef10ad21aa889810c8af7cbcd03bc to your computer and use it in GitHub Desktop.
Save otnansirk/759ef10ad21aa889810c8af7cbcd03bc to your computer and use it in GitHub Desktop.
Telegram Webhook Payload

Voice Message

[
  {
    "headers": {
      "connection": "upgrade",
      "host": "ai.kirimna.com",
      "content-length": "473",
      "x-forwarded-for": "91.108.5.21",
      "cf-ipcountry": "NL",
      "cf-visitor": "{\"scheme\":\"https\"}",
      "accept-encoding": "gzip, br",
      "content-type": "application/json",
      "cf-ray": "96b69c40d8a177ce-AMS",
      "x-forwarded-proto": "https",
      "cdn-loop": "cloudflare; loops=1",
      "cf-connecting-ip": "91.108.5.21"
    },
    "params": {},
    "query": {},
    "body": {
      "update_id": 312744940,
      "message": {
        "message_id": 243,
        "from": {
          "id": 479982991,
          "is_bot": false,
          "first_name": "Hi Kris πŸ‘‹",
          "username": "otnansirk",
          "language_code": "en"
        },
        "chat": {
          "id": 479982991,
          "first_name": "Hi Kris πŸ‘‹",
          "username": "otnansirk",
          "type": "private"
        },
        "date": 1754567992,
        "voice": {
          "duration": 4,
          "mime_type": "audio/ogg",
          "file_id": "AwACAgUAAxkBAAPzaJSVOH8N4u83t5ftB7_1WHoeu4QAApEZAAKj-qlU5rHBQOgw-1Q2BA",
          "file_unique_id": "AgADkRkAAqP6qVQ",
          "file_size": 14391
        }
      }
    },
    "webhookUrl": "https://ai.kirimna.com/webhook/sahacarabot",
    "executionMode": "production"
  }
]

Photo Message

[
  {
    "headers": {
      "connection": "upgrade",
      "host": "ai.kirimna.com",
      "content-length": "1003",
      "x-forwarded-for": "91.108.5.21",
      "cf-visitor": "{\"scheme\":\"https\"}",
      "x-forwarded-proto": "https",
      "accept-encoding": "gzip, br",
      "content-type": "application/json",
      "cf-ray": "9630c078dbca6646-AMS",
      "cf-ipcountry": "NL",
      "cdn-loop": "cloudflare; loops=1",
      "cf-connecting-ip": "91.108.5.21"
    },
    "params": {},
    "query": {},
    "body": {
      "update_id": 312744884,
      "message": {
        "message_id": 17,
        "from": {
          "id": 479982991,
          "is_bot": false,
          "first_name": "Hi Kris πŸ‘‹",
          "username": "otnansirk",
          "language_code": "en"
        },
        "chat": {
          "id": 479982991,
          "first_name": "Hi Kris πŸ‘‹",
          "username": "otnansirk",
          "type": "private"
        },
        "date": 1753164384,
        "photo": [
          {
            "file_id": "AgACAgUAAxkBAAMRaH8qXw-VQSGAG4X4VoCg9A5nE50AAvLGMRtBGPlXGt4-FX4l2_oBAAMCAANzAAM2BA",
            "file_unique_id": "AQAD8sYxG0EY-Vd4",
            "file_size": 1705,
            "width": 72,
            "height": 90
          },
          {
            "file_id": "AgACAgUAAxkBAAMRaH8qXw-VQSGAG4X4VoCg9A5nE50AAvLGMRtBGPlXGt4-FX4l2_oBAAMCAANtAAM2BA",
            "file_unique_id": "AQAD8sYxG0EY-Vdy",
            "file_size": 32527,
            "width": 255,
            "height": 320
          },
          {
            "file_id": "AgACAgUAAxkBAAMRaH8qXw-VQSGAG4X4VoCg9A5nE50AAvLGMRtBGPlXGt4-FX4l2_oBAAMCAAN4AAM2BA",
            "file_unique_id": "AQAD8sYxG0EY-Vd9",
            "file_size": 137906,
            "width": 638,
            "height": 800
          },
          {
            "file_id": "AgACAgUAAxkBAAMRaH8qXw-VQSGAG4X4VoCg9A5nE50AAvLGMRtBGPlXGt4-FX4l2_oBAAMCAAN5AAM2BA",
            "file_unique_id": "AQAD8sYxG0EY-Vd-",
            "file_size": 173215,
            "width": 816,
            "height": 1023
          }
        ]
      }
    },
    "webhookUrl": "https://ai.kirimna.com/webhook/sahacarabot",
    "executionMode": "production"
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment