Forge
powershell1a59f514
1# Tab-completion for TelegramNotifier.exe (PowerShell).
2# Load once: . .\TelegramNotifier-completion.ps1
3# Or add to $PROFILE for permanent completion.
4
5$script:TelegramNotifierCommands = @(
6 'send-message-to-user',
7 'create-chat',
8 'delete-chat',
9 'invite-user',
10 'delete-user-from-chat',
11 'list-chats',
12 'get-messages',
13 'get-media',
14 'create-topic',
15 'send-message-to-chat'
16)
17
18Register-ArgumentCompleter -Native -CommandName 'TelegramNotifier.exe' -ScriptBlock {
19 param($wordToComplete, $commandAst, $cursorPosition)
20 $script:TelegramNotifierCommands | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object { $_ }
21}
22
View only · write via MCP/CIDE