peyk.platforms.telegram.methods.get_user_personal_chat_messages

async peyk.platforms.telegram.methods.get_user_personal_chat_messages(self, user_id: int, limit: int | None = None) List[Message]

Use this method to get the last messages from the personal chat (i.e., the chat currently added to their profile) of a given user. On success, an Array of Message objects is returned.

Parameters:
  • user_id – Unique identifier for the target user

  • limit – The maximum number of messages to return; 1-20

Returns:

Result returned by Telegram on successful execution.

Return type:

List[Message]