Thanks for the library Kevinl. It works beautifuly. Im having an issue when the text to send contains a "line break" because I reveive an error. If the text don't have any line break message is sent correctly. I tryed with '$L', '$l','$N', '$n', \n, etc, unsuccessfully. Any ideas? All the best!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi albertocamina
funny that it is not working with $N, this may be a bug of my library i should check...
anyway, i recently did a bot with german umlaute (ÄÖÜ) and used unicode characters. that works like this:
Ü = Unicode C3BC = %C3%BC, the % sign in a ASCII is $25 so Ü is $25C3$25BC
now the answer to your question, you can use unicode newline (000A) that wil look like this: $2500$250A
so the string
'albertocamina$2500$250Aprefers messages on 2 lines'
btw you can also go with emojis, for example
$25F0$259F$2598$2583 = 😃
not yet, i am working on a update with much better performance and also less data usage wich i will propably release in summer...
also i am currently pretty busy, let me know how important the buttons are for you and i'll consider adding it soon in a update.
if you like to add the buttons yourself, please make sure to post your code here. i can also move the project to github if there is demand for helping in development.
kind regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Feel free to share your code for public use. Using Telegram bots for remote monitoring of standalone devices is really practical. It's great that you cleaned up your code and are now sharing it with others.
Thanks for the library Kevinl. It works beautifuly. Im having an issue when the text to send contains a "line break" because I reveive an error. If the text don't have any line break message is sent correctly. I tryed with '$L', '$l','$N', '$n', \n, etc, unsuccessfully. Any ideas? All the best!
hi albertocamina
funny that it is not working with $N, this may be a bug of my library i should check...
anyway, i recently did a bot with german umlaute (ÄÖÜ) and used unicode characters. that works like this:
Ü = Unicode C3BC = %C3%BC, the % sign in a ASCII is $25 so Ü is $25C3$25BC
now the answer to your question, you can use unicode newline (000A) that wil look like this: $2500$250A
so the string
'albertocamina$2500$250Aprefers messages on 2 lines'
btw you can also go with emojis, for example
$25F0$259F$2598$2583 = 😃
i hope that helps for the moment.
Last edit: kevinl 2022-11-13
Many thanks! Tested and operating perfectly!
Many thanks! Tested and operating perfectly!
great, glad it works
Gute Arbeit
Well done. works very well.
do you have a solution for buttons?
(reply_markup...)
not yet, i am working on a update with much better performance and also less data usage wich i will propably release in summer...
also i am currently pretty busy, let me know how important the buttons are for you and i'll consider adding it soon in a update.
if you like to add the buttons yourself, please make sure to post your code here. i can also move the project to github if there is demand for helping in development.
kind regards
Hi Kevin, any news on this update?
Feel free to share your code for public use. Using Telegram bots for remote monitoring of standalone devices is really practical. It's great that you cleaned up your code and are now sharing it with others.
i saw another cods to create telegram bot on https://eshloon.ir
Last edit: sajoo 2024-02-11