Skip to content

Instantly share code, notes, and snippets.

@theel0ja
Last active February 16, 2022 12:48
Show Gist options
  • Save theel0ja/e5c0c4f20a02478330be49b4fc6a2214 to your computer and use it in GitHub Desktop.
Save theel0ja/e5c0c4f20a02478330be49b4fc6a2214 to your computer and use it in GitHub Desktop.
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>
@claudchan
Copy link

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

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

@carol351
Copy link

Hai

@carol351
Copy link

??

@jharedpogi
Copy link

Jhffijv

@Shivend
Copy link

Shivend commented Jan 14, 2022

Good πŸ‘πŸ»

@Shivend
Copy link

Shivend commented Jan 14, 2022

Good πŸ‘πŸ»πŸ˜Š

@Shivend
Copy link

Shivend commented Jan 14, 2022

Good πŸ‘πŸ»

@Shivend
Copy link

Shivend commented Jan 14, 2022

Hru

@Shivend
Copy link

Shivend commented Jan 14, 2022

Good πŸ‘πŸ»

@Shivend
Copy link

Shivend commented Jan 14, 2022

Good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment