prolong_web_view()

async Client.prolong_web_view()

Prolong an open web app session to prevent it from expiring.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – The chat where the web app is open.

  • bot_id (int | str) – The bot that owns the web app.

  • query_id (int) – The web view query ID.

  • silent (bool, optional) – If True, send silently.

  • reply_to (InputReplyTo, optional) – Message to reply to.

  • send_as (int | str, optional) – Peer to send as.

Returns:

bool – True on success.

Example

await app.prolong_web_view(chat_id, bot_id, query_id=123)