# Telegram pinning option

**URL:** https://meta.discourse.org/t/telegram-pinning-option/286103
**Category:** Support
**Tags:** chat-integration
**Created:** [November 20, 2023, 5:38pm UTC](https://meta.discourse.org/t/telegram-pinning-option/286103 "2023-11-20T17:38:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Patrick11](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrick11/32/342693_2.png) [@Patrick11](https://meta.discourse.org/u/Patrick11)
#### Post date: [November 20, 2023, 5:38pm UTC](https://meta.discourse.org/t/telegram-pinning-option/286103/1 "2023-11-20T17:38:44Z")

</div>

Hello, is there any way to allow this plugin to post messages to a Telegram group, but _not_ allow it pin those messages in the group? Pinning a message in Telegram causes the message to show up at the top of the group, and should be reserved for important announcements, but this plugin automatically pins all messages it posts.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [November 28, 2023, 9:11pm UTC](https://meta.discourse.org/t/telegram-pinning-option/286103/3 "2023-11-28T21:11:05Z")

</div>

> [@Patrick11](#):
>
> this plugin automatically pins all messages it posts

That’s quite surprising to me - it’s certainly not intentional. This is the only information we send to telegram’s API:

> <https://github.com/discourse/discourse-chat-integration/blob/bd9bf836ad/lib/discourse_chat_integration/provider/telegram/telegram_provider.rb#L90-L95>

I wonder if there is some other configuration / bot (or maybe even a user?) in your telegram group which is causing the messages to be pinned? 🤔

---

<div class="post-metadata">

### Author: ![Patrick11](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrick11/32/342693_2.png) [@Patrick11](https://meta.discourse.org/u/Patrick11)
#### Post date: [November 28, 2023, 10:17pm UTC](https://meta.discourse.org/t/telegram-pinning-option/286103/4 "2023-11-28T22:17:26Z")

</div>

That is interesting, we have a few bots, I’ll look into this more and see if I can figure it out. It’s definitely not a user, this has always been how the bot has operated for us and it’s always instant pins. Thanks for your help!

---

<div class="post-metadata">

### Author: ![Patrick11](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrick11/32/342693_2.png) [@Patrick11](https://meta.discourse.org/u/Patrick11)
#### Post date: [November 28, 2023, 10:47pm UTC](https://meta.discourse.org/t/telegram-pinning-option/286103/5 "2023-11-28T22:47:37Z")

</div>

I figured it out, sorry for the confusion. We had the Discourse plugin posting messages to a dedicated Telegram channel for forum posts, and then that channel would post those messages into our main community Telegram group, and at the same time pin them. It wasn’t the Discourse plugin doing the pinning, but the Telegram channel. Thanks for your help! This topic can be marked as resolved.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 28, 2023, 10:47pm UTC](https://meta.discourse.org/t/telegram-pinning-option/286103/6 "2023-12-28T22:47:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
