Documentation - v0.32.8
    Preparing search index...

    Function editSharedWidgetData

    • Edit shared state of a shared widget by its ID, changing it for all messages containing the widget.

      Parameters

      • client: ITelegramClient
      • params: { cacheTime?: number; publicData: string; widgetId: Long }
        • OptionalcacheTime?: number

          Recommended interval (in seconds) at which clients should poll the shared state (5-3600). Pass 0 to reset to the default (30 seconds)

        • publicData: string

          New shared state of the widget (up to 1024 bytes)

        • widgetId: Long

          ID of the shared widget

      Returns Promise<void>