editSharedWidgetData¶
Returns: bool
- class aiogram.methods.edit_shared_widget_data.EditSharedWidgetData(*, widget_id: str, public_data: str, cache_time: int | None = None, **extra_data: Any)[source]¶
Use this method to edit public data of a shared widget created by the bot. A shared widget can be edited at most once per second. On success,
Trueis returned.Source: https://core.telegram.org/bots/api#editsharedwidgetdata
- widget_id: str¶
Unique identifier of the shared widget
- public_data: str¶
New public data of the widget, 0-1024 bytes; pass an empty string to remove the public data
- cache_time: int | None¶
The maximum amount of time in seconds that the public data of the widget may be cached client-side; 5-3600. If omitted, then the current value is kept, which is 30 by default
Usage¶
As bot method¶
result: bool = await bot.edit_shared_widget_data(...)
Method as object¶
Imports:
from aiogram.methods.edit_shared_widget_data import EditSharedWidgetDataalias:
from aiogram.methods import EditSharedWidgetData
With specific bot¶
result: bool = await bot(EditSharedWidgetData(...))
As reply into Webhook in handler¶
return EditSharedWidgetData(...)