Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

break line with markdown and html doesnt work? #2

Open
xmaxmex opened this issue Jul 31, 2024 · 0 comments
Open

break line with markdown and html doesnt work? #2

xmaxmex opened this issue Jul 31, 2024 · 0 comments

Comments

@xmaxmex
Copy link

xmaxmex commented Jul 31, 2024

See on CLI on Windows

PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format "markdown" -message "ola teste \n\n teste papi" -debug
2024/07/30 22:31:33 Endpoint: sendMessage, params: map[chat_id:-4278916660 entities:null parse_mode:Markdown text:ola teste \n\n teste papi]
2024/07/30 22:31:34 Endpoint: sendMessage, response: {"ok":true,"result":{"message_id":402,"from":{"id":6812439300,"is_bot":true,"first_name":"VMSbot","username":"multivms_bot"},"chat":{"id":-4278916660,"title":"VMS Devel Group 1","type":"group","all_members_are_administrators":true},"date":1722389493,"text":"ola teste \n\n teste papi"}}
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format "markdown" -message "ola teste \n teste papi" -debug
2024/07/30 22:33:31 Endpoint: sendMessage, params: map[chat_id:-4278916660 entities:null parse_mode:Markdown text:ola teste \n teste papi]
2024/07/30 22:33:31 Endpoint: sendMessage, response: {"ok":true,"result":{"message_id":403,"from":{"id":6812439300,"is_bot":true,"first_name":"VMSbot","username":"multivms_bot"},"chat":{"id":-4278916660,"title":"VMS Devel Group 1","type":"group","all_members_are_administrators":true},"date":1722389611,"text":"ola teste \\n teste papi"}}
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -filetype photo -filename foto.jpg -caption "The Moon at night"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text Titulo"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text Titulo \nSubtiulo teste"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text Titulo \n\nSubtiulo teste"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text Titulo Subtiulo teste"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text Titulo %0A Subtiulo teste"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text Titulo %0A Subtiulo teste"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text Titulo "%0A" Subtiulo teste"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text Titulo "%0A" Subtiulo teste"
PS C:\Users\xmaxm\Downloads\dahuaevents2mqtt-master\alarm2mqtt-caco\melhorias-luthy> .\tgsend.exe -token "6812439300:AAE-LgEB2cY053nkM6R7f6ZK-C3PaIiM6PU" -chatid "-4278916660" -format markdown -message "bold text italic text Titulo \"%0A" Subtiulo teste"
tgsend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant