id: telegram-token

info:
  name: Telegram Bot Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/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: 4a0a00473045022100e454c684f0ff995f0d707c4c7822184fe1cc4e2130325e79e099472e3b464a4b022078b89af434289c0249595e4881a7f1e76dada94daf8bcfd9063f29098da2114c:922c64590222798bb761d5b6d8e72950