telegram api method · layer 229 · #b0d81a83

messages.prolongWebView

usable by users

Indicate to the server (from the user side) that the user is still using a web app.

definition

messages.prolongWebView#b0d81a83 flags:# silent:flags.5?true peer:InputPeer bot:InputUser query_id:long reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = Bool;

parameters

nametypedescription
flags#Flags, see TL conditional fields
silentflags.5?trueWhether the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated should be sent silently (no notifications for the receivers).
peerInputPeerDialog where the web app was opened.
botInputUserBot that owns the web app
query_idlongWeb app interaction ID obtained from messages.requestWebView
reply_toflags.0?InputReplyToIf set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated should be sent in reply to the specified message or story.
send_asflags.13?InputPeerOpen the web app as the specified peer

returns

Bool

errors (3)

codeerrordescription
400BOT_INVALIDThis is not a valid bot.
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 140–229 · constructor id changed 3×

idlayers
#d22ad148140–142
#ea5fbcce143–147
#7ff34309148–159
#b0d81a83160–229