- Create a bot using @BotFather, get it's token
- Start conversation with bot
- Run following curl command
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
| // I'm tired of extensions that automatically: | |
| // - show welcome pages / walkthroughs | |
| // - show release notes | |
| // - send telemetry | |
| // - recommend things | |
| // | |
| // This disables all of that stuff. | |
| // If you have more config, leave a comment so I can add it!! | |
| { |
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
| "Registry path","CLSID","(default)","AppID","ProgID","InprocServer32" | |
| "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\CLSID","CLSID","{0000031A-0000-0000-C000-000000000046}","","","" | |
| "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0000002F-0000-0000-C000-000000000046}","{0000002F-0000-0000-C000-000000000046}","CLSID_RecordInfo","","","C:\Windows\System32\oleaut32.dll" | |
| "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000300-0000-0000-C000-000000000046}","{00000300-0000-0000-C000-000000000046}","StdOleLink","","","combase.dll" | |
| "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000301-A8F2-4877-BA0A-FD2B6645FB94}","{00000301-A8F2-4877-BA0A-FD2B6645FB94}","PSFactoryBuffer","","","C:\Windows\system32\windowscodecs.dll" | |
| "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000303-0000-0000-C000-000000000046}","{00000303-0000-0000-C000-000000000046}","FileMoniker","","file","combase.dll" | |
| "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000304-0000-0000-C000-000000000046}","{00000304-0000-0000-C000-000000000046}","ItemMoniker","","","comb |
| # Focus Assist Off | |
| Add-Type -AssemblyName System.Windows.Forms | |
| [System.Windows.Forms.SendKeys]::SendWait("(^{ESC})") | |
| Start-Sleep -Milliseconds 500 | |
| [System.Windows.Forms.SendKeys]::SendWait("(Focus Assist)") | |
| Start-Sleep -Milliseconds 200 | |
| [System.Windows.Forms.SendKeys]::SendWait("{ENTER}") | |
| Start-Sleep -Milliseconds 700 | |
| [System.Windows.Forms.SendKeys]::SendWait("{TAB}{TAB} ") | |
| Start-Sleep -Milliseconds 500 |