telegram api method · layer 229 · #570d6f6f

messages.getWebPagePreview

usable by users

Get preview of webpage

definition

messages.getWebPagePreview#570d6f6f flags:# message:string entities:flags.3?Vector<MessageEntity> = messages.WebPagePreview;

parameters

nametypedescription
flags#Flags, see TL conditional fields
messagestringMessage from which to extract the preview
entitiesflags.3?Vector<MessageEntity>Message entities for styled text

returns

messages.WebPagePreview

errors (4)

codeerrordescription
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.
400ENTITY_BOUNDS_INVALIDA specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length.
400MESSAGE_EMPTYThe provided message is empty.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 46–229 · constructor id changed 2×

idlayers
#25223e2446–75
#8b68b0cc76–196
#570d6f6f197–229