Merge pull request #10917 from 0xPugal/patch-2

Create api-telegram.yaml
patch-12
Prince Chaddha 2024-10-07 22:10:09 +07:00 committed by GitHub
commit 9a6d7a7eeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
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