telegram api method · layer 134 · #d10dd71b

channels.deleteUserHistory

not in the latest layer 229: last defined in layer 134

definition

channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory;

parameters

nametypedescription
channelInputChannel
user_idInputUser

returns

messages.AffectedHistory

errors (7)

codeerrordescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400MSG_ID_INVALIDInvalid message ID provided.
400USER_ID_INVALIDThe provided user ID is invalid.
403CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.

history

present in layers 46–134

idlayers
#d10dd71b46–134