PoshGram
PoshGram copied to clipboard
Send messages via the Telegram Bot API using PowerShell
Hello! When I try to send a file with cyrillic characters in name to telegram ``` $botToken = "xxxx" $chat = "xxxx" $file = "C:\абв г.txt" $sendTelegramLocalDocumentSplat = @{ BotToken...
### Describe the solution you'd like There is no built-in method to retrieve Chat Id from a telegram bot. It would be useful to have it as a CmdLet. Could...
Haven't determined a way to properly mock Invoke-WebRequest exceptions yet - which this function depends on. If anyone has any suggestions I'd love to hear them. ``` powershell File Function...
[telegram-bot-api](https://github.com/tdlib/telegram-bot-api) can be self-hosted to lift more restrictions, so I think adding arguments to PoshGram to support self-hosted endpoints is necessary.
The message was sent successfully when I first exectuted, again executing gives me the error. It's the same with when I test with `Test-BotToken` * powershell version 7.4.1 * PoshGram...