Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Telegram widget demo
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha256-NJWeQ+bs82iAeoT5Ktmqbi3NXwxcHlfaVejzJI2dklU=" crossorigin="anonymous" />
<!-- SEO -->
<title>Hello, world!</title>
</head>
<body>
<!-- Your content -->
<div class="container">
<h1>Hello, world!</h1>
<p>
<script async src="https://telegram.org/js/telegram-widget.js?4" data-telegram-post="durov/76" data-width="100%"></script>
</p>
<p><script async src="https://telegram.org/js/telegram-widget.js?4" data-telegram-post="durov/83" data-width="100%"></script></p>
</div>
</body>
</html>
@theel0ja

This comment has been minimized.

@claudchan

This comment has been minimized.

Copy link

@claudchan claudchan commented Mar 30, 2019

Is there a way to get only the latest post? The problem is if any new post in the telegram channel posted, the website will not update and have to manually change the post number.

@mayuringle05

This comment has been minimized.

Copy link

@mayuringle05 mayuringle05 commented Nov 16, 2019

Hey I am using same script for my post but it is not responsive for mobile device.. can you tell me how to make this telegram post widget in reponsive nature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.