Telegram share link or button for Django Reports Project

Today I decided to add the ability to send information from my work accounting system directly to telegram. This is convenient for passing information to your boss, for example.

There are several options for implementation:
https://t.me/share/url?url={url}&text={text}
https://telegram.me/share/url?url={url}&text={text}
tg://msg_url?url={url}&text={text}

I tried all the options and found that the most suitable option is 1, because it works equally well on Android, IOS and desktop applications for Windows and macOS.

I slightly modified the code for generating the table in the template:

Now I have an excellent function of sending information to telegram!

See also  How to generate xlsx file from Django model
Author: admin

Leave a Reply

Your email address will not be published. Required fields are marked *