id: telegram-token

info:
  name: Telegram Bot Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/telegram.yml
    - https://core.telegram.org/bots/api
    - https://core.telegram.org/bots/features#botfather
  metadata:
    verified: true
  tags: file,keys,telegram,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(\d+:AA[a-zA-Z0-9_-]{32,33})'
# digest: 4a0a00473045022100c5f1030a89aaf0c7198b5eb5fc5016f1f286ce1549eeadac2de33c082dbeebf3022053333b868077f7cd97bf8d4d4102638d50f9a7908d95022c1bf490adc5f2a3b9:922c64590222798bb761d5b6d8e72950