import { ITelegramClient } from '../../client.types.js'; import { InputMessageId, Message } from '../../types/index.js'; /** * Pin a message in a group, supergroup, channel or PM. * * For supergroups/channels, you must have appropriate permissions, * either as an admin, or as default permissions * * @returns Service message about pinned message, if one was generated. */ export declare function pinMessage(client: ITelegramClient, params: InputMessageId & { /** Whether to send a notification (only for legacy groups and supergroups) */ notify?: boolean; /** Whether to pin for both sides (only for private chats) */ bothSides?: boolean; /** * Whether to dispatch the returned service message (if any) * to the client's update handler. */ shouldDispatch?: true; }): Promise;