Skip to content

Embedded Telegram Posts #179

@dmitriyfourier

Description

@dmitriyfourier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions