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

Embedded Telegram Posts #179

Open
dmitriyfourier opened this issue Apr 9, 2023 · 2 comments
Open

Embedded Telegram Posts #179

dmitriyfourier opened this issue Apr 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@dmitriyfourier
Copy link

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
Copy link
Author

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

@gfscott
Copy link
Owner

gfscott commented Apr 11, 2023

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 gfscott added the enhancement New feature or request label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants