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

Telegram: how to insert newlines in <text_to_post> ??? #57

Open
michaelhjulskov opened this issue Jun 5, 2021 · 1 comment
Open

Telegram: how to insert newlines in <text_to_post> ??? #57

michaelhjulskov opened this issue Jun 5, 2021 · 1 comment

Comments

@michaelhjulskov
Copy link

Hi there
Thank You for this code
I am trying to figure out how to insert newlines in the <text_to_post> string ????
Please help me,Thanks
Michael

{% post_to_telegram "See thiis interesting conversation? NEWLINE NEWLINE {{conversation.title}} NEWLINE NEWLINE {{conversation.text}}" request.path "Telegram" "telegram-link social-links" %}

@fcurella
Copy link
Owner

fcurella commented Jun 9, 2021

Hi @michaelhjulskov ,

Assuming your template is HTML, you could use <br/>:

{% post_to_telegram "See this interesting conversation? <br/><br/> {{conversation.title}} <br/> <br/> {{conversation.text}}" request.path "Telegram" "telegram-link social-links" %}

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

2 participants