bitjerry / Microsoft-365-bot

Manage the Microsoft 365 Global by the telegram bot
MIT License
30 stars 14 forks source link
bot microsoft microsoft-graph microsoft-graph-api microsoft365 microsoft365apps office office-365 office365 python telegram telegram-bot

Microsoft 365 bot

forthebadge

Manage the Microsoft 365 Global by the telegram bot

Read in other languages: English | 简体中文

Features


🎉Preview


screenshots

👉More screenshot >>>

🚀Create app


https://aad.portal.azure.com

screenshots

screenshots

Permissions


Organization.Read.All, Organization.ReadWrite.All
RoleManagement.Read.Directory, RoleManagement.ReadWrite.Directory
User.Read.All, User.ReadWrite.All
Directory.Read.All, Directory.ReadWrite.All
Directory.AccessAsUser.All

🤖Create a Robot


@BotFather

screenshots

Commands

start - Start Robot
log - Get the log of the robot
key -Protect app data
myapp - Specify an app
newapp - Create a new app
clearapp - Clear all app
addapps - Add more apps
exportapps - Batch add app
listdomain - List and manage domain names
adddomain - Add a domain name
getorg - Get organization information
getrole - Get role information
getsub - Get subscription information
getuser - Get user information
getuserbyname - Gets user information (specifies user by username)
searchuser - Get user information (by fuzzy search with username)
addUser - Add a user
cancel - Cancel the current operation

⚙️Config


Considering one-button deployment, configurations are all in the form of environment variables.

❓Instructions >>>

🥼Runtime


🔨Deploy


Heroku Deploy:

Deploy

Others:

❓Fly.io >>>

❓VPS >>>

❓Docker >>>

🏃Run


The bot has two modes of work and does not require manual activation.

  1. webhook: automatically enabled if a webhook link is configured in an environment variable
  2. polling: Use this method automatically if you do not configure a webhook link

We recommend using webhook because polling constantly pulls out messages to the telegram server, which is relatively resource intensive

📝Changelog

📖More

⚖️License


MIT © bitjerry

2022/9/1 Mr.lin