api.getChatPinnedMessage()
Returns information about a newest pinned message in the chat
Parameters
GetChatPinnedMessageParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Identifier of the chat the message belongs to |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'getChatPinnedMessage' | 'error'
airgram: Airgram
request: {
method: 'getChatPinnedMessage'
params: GetChatPinnedMessageParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}