Skip to content

Commit

Permalink
Update resources/NotificationHandler.psm1
Browse files Browse the repository at this point in the history
Co-authored-by: tigattack <[email protected]>
  • Loading branch information
Philenst and tigattack authored Jan 18, 2024
1 parent a9a2f46 commit c40749e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions resources/NotificationHandler.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -769,20 +769,6 @@ function New-TelegramPayload {
return $message
}

# $message = New-TelegramPayload @jobData

# # Build post parameters
# $postParams = @{
# Uri = "https://api.telegram.org/bot$($token)/sendMessage"
# Body = @{ chat_id = "$chatId"; parse_mode = 'MarkdownV2'; text = $message }
# Method = 'Post'
# ContentType = 'application/x-www-form-urlencoded'
# ErrorAction = 'Continue'
# }

# # Post payload
# [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
# Invoke-RestMethod @postParams

function Send-JSONPayload {
[CmdletBinding()]
Expand Down

0 comments on commit c40749e

Please sign in to comment.