Documentation - v0.32.8
    Preparing search index...

    Function editMessageWidgetData

    • Edit state of a widget inside a message sent by the bot.

      Fields that are not passed are left unchanged, and an empty string clears the field. For shared widgets, editing publicData changes it for all messages containing the widget.

      Parameters

      • client: ITelegramClient
      • params: InputMessageId & { chatData?: string; publicData?: string }
        • OptionalchatData?: string

          New chat-specific state of the widget (up to 1024 bytes)

        • OptionalpublicData?: string

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

      Returns Promise<void>