Skip to main content

Pinned message

A pinned message is a post fixed to the top of a channel so every subscriber sees it first, regardless of when it was published. Channels use pins for announcements, rules, or a current promotion. Pinning is one of the channel-management actions an administrator bot like Autogram's can perform when you grant it the relevant permission.

How a pin behaves in a channel

A pin is channel state layered on top of the post, not a change to the post itself: the message stays where it was published in the timeline and is additionally surfaced at the top. A channel can hold several pins at once, presented as a stack subscribers can page through. Unpinning targets one specific message, while a separate action clears every pin at once.

Pinning is a placement decision

In a channel, pinning does not notify subscribers: the Bot API documentation says that notifications are always disabled in channels and private chats. A pin is still a real decision, because it picks what deserves the top slot and for how long. Automation that re-pins the same announcement on a cycle is the usual way this goes wrong, since each pin puts content that may be months old back in front of every new reader.

Pins go stale faster than anyone expects

The top slot is the first thing a new subscriber reads, which makes an expired promotion or a two-year-old rules post actively costly. The habit worth building is deciding when a pin comes down at the moment it goes up, and rotating pins alongside campaigns rather than leaving one permanent fixture. An unpin scheduled in advance beats one remembered later.

Which rights does pinning need, and how do you undo it?

In a channel the bot must be an administrator with the edit messages right. The separate pin messages right applies only to groups. The Bot API documentation says that notifications for a new pin are always disabled in channels and private chats, so the disable_notification flag changes nothing there. Removing pins needs care. The unpinChatMessage method with a message id removes that one pin. The same call without an id removes the most recent pin by sending date, which may be a pin you did not place. The unpinAllChatMessages method clears the whole list. A pin is a separate call after the post exists, so a failed pin leaves the post published but not pinned. Check the bot's rights before you suspect the post.

Pinning and unpinning with Autogram

When you publish or schedule a post in Autogram, you can ask for it to be pinned after it goes out. Autogram pins it silently. You can also set an unpin time in minutes, and Autogram removes the pin when that time has passed. It checks for due unpins every minute, so a pin ends within about a minute of its deadline. Autogram unpins by message id, so it removes only the pin it placed and leaves the other pins in your channel alone. If the pin call fails, for example because the bot lost the edit messages right, the post stays published and the failure is logged. Use a timed unpin for promotions, so the top slot never carries an expired offer.

Worked example: a 48-hour promotion

A shop channel starts a sale on Monday at 10:00 and wants the offer at the top until Wednesday at 10:00. Schedule the post, turn on the pin and set the unpin time to 2880 minutes, which is 48 hours. On Monday the post publishes and the pin call follows. On Wednesday the unpin runs within about a minute of the deadline. It removes only that pin, so an older pin, such as the channel rules, stays in place. Before the sale, check the bot's rights. The bot must be an administrator with the edit messages right. Without it, the post goes out and the pin fails, so the offer never reaches the top.

Pins for paid placements

When you sell an ad slot, the pin is often part of what the buyer pays for. A placement format X/Y means the post stays at the top for X hours and is deleted after Y hours. In the Autogram ad manager you can turn on the pin for the hours at the top. Autogram pins the post when it publishes and unpins it when the top window ends. The hours at the top cannot exceed the hours before deletion. Once the post is live, the pin setting cannot change, because nothing would move the pin that is already in the channel. If Telegram refuses the pin, the post stays published and Autogram sends you a notification, so you can pin by hand or tell the buyer. The ad manager is on the Solo plan and higher.

Put these concepts to work

Automate your Telegram publishing with AI content, quality scoring, and smart scheduling.