Deletes communication history.
InputPeer) – User or chat, communication history of which will be deleted.
32-bit) – Maximum ID of message to delete.
bool, optional) – Just clear history for the current user, without actually removing messages for every chat user.
bool, optional) – Whether to delete the message history for all chat participants.
messages.AffectedHistory– Object contains info on affected part of communication history with the user or in a chat.