telegram api method · layer 229 · #8107455c

messages.toggleSuggestedPostApproval

usable by users and bots

Approve or reject a suggested post ».

definition

messages.toggleSuggestedPostApproval#8107455c flags:# reject:flags.1?true peer:InputPeer msg_id:int schedule_date:flags.0?int reject_comment:flags.2?string = Updates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
rejectflags.1?trueReject the suggested post.
peerInputPeerBoth for users and channels, must contain the ID of the direct messages monoforum » (for channels, the topic ID is extracted automatically from the msg_id).
msg_idintID of the suggestion message.
schedule_dateflags.0?intCustom scheduling date.
reject_commentflags.2?stringOptional comment for rejections (can only be used if reject is set).

returns

Updates

errors (3)

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.
400PEER_ID_INVALIDThe provided peer id is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 206–229

idlayers
#8107455c206–229