Telegram message forwarder
- Add @iForwardBot bot
- Send
/token
command - Bot return your forward token
- Use http requests in API to send messages to yourself through the bot
API Url: https://ifwd.dd4e.ru/v1/message
Method: POST
Content-Type: application/json
Body:
{
"token": "your forward token",
"message": "forwarded message",
"format": "'Markdown' or 'HTML'",
"silent": false
}
format
is optional, default plain text
silent
is optional, defaulfalse
Code: 200
Content-Type: application/json
{
"ok": true,
"messageID": 512
}
Method: GET
Query params:
- t=
your forward token
- m=
forwarded message
- f=
'Markdown' or 'HTML'
- s=
false
format
is optional, default plain text
silent
is optional, defaulfalse
Code: 200
Content-Type: application/json
{
"ok": true,
"messageID": 512
}
Method: PUT
Query params:
- t=
your forward token
- m=
edited message
- mid=
forwarded 'messageID'
Code: 200
Content-Type: application/json
{
"ok": true
}
Method: DELETE
Query params:
- t=
your forward token
- mid=
forwarded 'messageID'
Code: 200
Content-Type: application/json
{
"ok": true
}
$Uri = 'https://iforward.dd4e.ru/v1/message'
$body = @{
token = "forward token";
message = "yor message"
} | ConvertTo-Json
Invoke-WebRequest -Uri $Uri -Body $body -Method POST