Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the teams chat message list command #6484

Open
apc005 opened this issue Nov 10, 2024 · 1 comment
Open

Improve the teams chat message list command #6484

apc005 opened this issue Nov 10, 2024 · 1 comment

Comments

@apc005
Copy link

apc005 commented Nov 10, 2024

Hi

When running "teams chat message list" the command returns all the messages in the specified chat. On old/verbose chats this takes a lot of time and sometimes even fails

The Microsoft Graph itself has a default limit to 20 messages only (that can be overrided by adding $top=xx option)

It would be great to add the following options to "teams chat message list" :

  • --startTime [startTime] (as per outlook message list, similar to $filter option in Microsoft graph)
  • --endTime [endTime] (as per outlook message list, similar to $filter option in Microsoft graph) - default now
  • --topMessages [number] (same as $top option in Microsoft graph) - Max number of returned messages - default 20
  • --orderBy (same as $orderby option in Microsoft graph) lastModifiedDateTime or createdDateTime (Microsoft supports only decreasing order)

Best regards

@waldekmastykarz
Copy link
Member

This is a great suggestion. The only suggestion I have is to use top instead of topMessage to avoid repeating message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants