Pins Commands
📦 Pins Commands
Section titled “📦 Pins Commands”All the pin-related commands can be found here; keep your chat up to date on the latest news with a simple pinned message!
User commands: × /pinned: Get the current pinned message.
Admin commands:
× /pin: Pin the message you replied to. Add ‘loud’ or ‘notify’ to send a notification to group members.
× /pinned: Gets the latest pinned message in the current Chat.
× /permapin
Features:
Anti-Channel Pin: When enabled, the bot will automatically unpin any message that gets auto-pinned by a linked channel. This is useful when you want to maintain control over what gets pinned in your group.
Important: When using anti channel pins, always use the /unpin command instead of unpinning manually through Telegram. Manual unpinning will cause the old message to get re-pinned when the channel sends new messages.
Clean Linked: When enabled, the bot will automatically delete any messages sent to the group from the linked channel. This keeps your group chat clean from cross-posted channel content.
Permapin: Create custom pinned messages with:
- Text with HTML/Markdown formatting
- Inline buttons with URLs
- Media attachments (photos, documents, stickers, audio, video, voice notes, video notes)
- All standard message fillings ({first}, {chatname}, etc.)
Supported via Connection:
The following commands work when connected to a chat via /connect:
/antichannelpin/cleanlinked
Module Aliases
Section titled “Module Aliases”This module can be accessed using the following aliases:
antichannelpincleanlinkedpins
Available Commands
Section titled “Available Commands”| Command | Description | Disableable |
|---|---|---|
/antichannelpin | Don’t let telegram auto-pin linked channels. If no arguments are given, show the current setting. | ❌ |
/cleanlinked | Delete messages sent by the linked channel. | ❌ |
/permapin | Pin a custom message through the bot. This message can contain markdown, buttons, and all the other cool features. | ❌ |
/pin | Get the current pinned message. | ❌ |
/pinned | Get the current pinned message. | ❌ |
/unpin | Unpin the current pinned message. If used as a reply, unpins the replied-to message. | ❌ |
/unpinall | Unpins all pinned messages. | ❌ |
Usage Examples
Section titled “Usage Examples”Basic Usage
Section titled “Basic Usage”/antichannelpin/cleanlinked/permapinFor detailed command usage, refer to the commands table above.
Required Permissions
Section titled “Required Permissions”Commands in this module are available to all users unless otherwise specified.
Technical Notes
Section titled “Technical Notes”Notes:
- The
/unpinallcommand shows a confirmation dialog before unpinning all messages - Permapin supports all media types that Telegram supports for pinning
- Anti-channel pin and clean linked settings are stored per-chat and persist across bot restarts
Required Permissions: Bot: Must be admin with “Pin Messages” permission User: Most commands require admin with “Pin Messages” permission