Minimal functionality implemented

Minimal functionality implemented
This commit is contained in:
2022-06-27 00:16:39 +03:00
parent 239197ffed
commit e0011e421d
10 changed files with 1357 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
Function Send-Telegram {
Param([Parameter(Mandatory=$true)][String]$Message)
$Telegramtoken = "Your_Telegram_Token"
$Telegramchatid = "Your_Telegram_Chat_ID"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$Response = Invoke-RestMethod -Uri "https://api.telegram.org/bot$($Telegramtoken)/sendMessage?chat_id=$($Telegramchatid)&text=$($Message)"
}