id: api-telegram

info:
  name: Telegram API Test
  author: 0xpugal
  severity: info
  description: Telegram bot API token
  reference:
    - https://core.telegram.org/bots/api#making-requests
    - https://github.com/streaak/keyhacks?tab=readme-ov-file#telegram-bot-api-token
  metadata:
    max-request: 1
  tags: token-spray,telegram

self-contained: true

http:
  - method: GET
    path:
      - "https://api.telegram.org/bot{{token}}/getMe"

    matchers:
      - type: word
        part: body
        words:
          - '"id"'
          - '"is_bot"'
          - '"first_name:"'
          - '"username"'
        condition: and
# digest: 4a0a0047304502202fed930fc55d264078cacbf34544d29b048fe1b0fec3d5dcfe6a70eadea4c683022100e4a8b113345add58ca0c67f3da806eaa49e23dd51d16ffe68e2029de36ad3ce7:922c64590222798bb761d5b6d8e72950