Skip to content

Create a toast notification without message preview when a new Microsoft Teams message arrives.

License

Notifications You must be signed in to change notification settings

DevSecNinja/MSTeamsPrivateNotifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft Teams Private Notifications for Windows 10

A Python script that creates a toast message when a new message pops-up in Microsoft Teams. It hides the message preview to prevent others from reading messages on the screen during meetings:

Microsoft Teams Toast Message

Installation

Download the main-standalone.py script. Make sure you have Python 3.7 or newer installed on your system.

Install the win10toast Python Library from jithurjacob (see his Github)

pip install pypiwin32
pip install win10toast

Create a scheduled task in Windows 10 that uses an "At log on" trigger for your user account. Use the following action:

  • Action: Start a program
  • Program/script: pythonw
  • Add arguments: .\main-standalone.py
  • Start in: The location of the script on your local disk. Make sure your user account has access to it.

Run the Task Scheduler task and ask someone to send you a message or have a chat with the Teams Bot.

Requirements

System Requirements

Windows 10 with Python 3.7 or newer installed

Requirements to run the script

pypiwin32
setuptools

To-do

  • Adjust the script to run as a Windows Service. Currently the script needs to run under user context for the Toast Messages to work. That's why it needs to be triggered from a Scheduled Task.
  • The script is a bit 'quick and dirty' as it gathers the status from the log file. It would be nice to integrate with the Teams Client SDK.

Credits

About

Create a toast notification without message preview when a new Microsoft Teams message arrives.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages