1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-27 02:43:54 +02:00
OpenIntegrations/service/vhs/telegram_keyboardmessage.tape

24 lines
982 B
VHS

Set Theme { "name": "OPI", "black": "#090300", "red": "#db2d20", "green": "#002B28", "yellow": "#004943", "blue": "#01a0e4", "magenta": "#a16a94", "cyan": "#b5e4f4", "white": "#000000", "brightBlack": "#5c5855", "brightRed": "#e8bbd0", "brightGreen": "#002B28", "brightYellow": "#004943", "brightBlue": "#807d7c", "brightMagenta": "#d6d5d4", "brightCyan": "#cdab53", "brightWhite": "#000000", "background": "#FFFFFF", "foreground": "#4a4543", "cursor": "#4a4543", "selection": "#a5a2a2" }
Output "D:\REPOS\OpenIntegrations\docs\en\md\Start\img\3.gif"
# Require echo
Set Shell "cmd"
Set FontSize 12
Set Width 868
Set Height 619
Hide
Type "set token=" Enter
Type "cls" Enter
Show
Type `oint telegram FormKeyboardFromButtonArray --buttons "['Button1','Button2','Button3']" --out keyboard.json ` Sleep 200ms Enter
Sleep 3s
Type `oint telegram SendTextMessage --token %token% --chat 461699897 --text "Hola from Oint!" --keyboard ./keyboard.json` Sleep 200ms Enter
Sleep 12s