eleventy-plugin-embed-everything icon indicating copy to clipboard operation
eleventy-plugin-embed-everything copied to clipboard

Embedded Telegram Posts

Open dmitriyfourier opened this issue 3 years ago • 2 comments

Telegram post link looks like https://t.me/FourierNotesRU/65 where FourierNotesRu — channel or profile name 65 — is ID post that you want embed.

script for embed looks like:

<script async src="https://telegram.org/js/telegram-widget.js?22" data-telegram-post="FourierNotesRU/65" data-width="100%"></script>

Output html:

<iframe id="telegram-post-FourierNotesRU-65" src="https://t.me/FourierNotesRU/65?embed=1" width="100%" height="" frameborder="0" scrolling="no" style="overflow: hidden; color-scheme: light dark; border: none; min-width: 320px; height: 684px;"></iframe>
<script async="" src="https://telegram.org/js/telegram-widget.js?22" data-telegram-post="FourierNotesRU/65" data-width="100%"></script>

I think you can use Instagram package for creating telegram embed.

P.S. I try to made it, but I'm newbie on GitHub, and I did't make a changes for pull request. It will be cool if you will added contributing guide to this repo.

Thanks

dmitriyfourier avatar Apr 09 '23 10:04 dmitriyfourier

Telegram documentation for post widget: https://core.telegram.org/widgets/post

dmitriyfourier avatar Apr 09 '23 13:04 dmitriyfourier

Thanks for filing this issue — I didn't know Telegram posts were embeddable! I'll have to read up on it a bit more but it does seem quite doable.

And I definitely hear you on the contributor guide! I know the inner workings aren't exactly obvious... I'll add it to the list!

gfscott avatar Apr 11 '23 01:04 gfscott