# updateChatPinnedMessage

A message was pinned in a [basic group](/api/channel.md#basic-groups). This update is also typically emitted as an [updateNewChannelMessage](/constructor/updateNewChannelMessage.md) with [messageService](/constructor/messageService.md).

No such constructor in the current schema.

### Parameters

| Name | Type | Description |
| --- | :---: | --- |
| **chat\_id** | [int](/type/int.md) | [Basic group](/api/channel.md#basic-groups) ID |
| **id** | [int](/type/int.md) | ID of pinned message |
| **version** | [int](/type/int.md) | Used similarly to `pts` values to deduplicate/update outdated chat information as specified [here &raquo;](/api/peers.md#basic-group-updates). |

### Type
&nbsp;

### Related pages

#### [Channels, supergroups, gigagroups and basic groups](/api/channel.md)
How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.

#### [updateNewChannelMessage](/constructor/updateNewChannelMessage.md)
A new message was sent in a [channel/supergroup](/api/channel.md)

#### [messageService](/constructor/messageService.md)
Indicates a service message