Giter VIP home page Giter VIP logo

microsoft_teams_channel_bot's Introduction

Microsoft Teams Channel Bot

This is a simple bot written in C# that uses the Microsoft Graph API to respond to messages in a Microsoft Teams channel.

Dependencies

  • Microsoft.Identity.Client 4.50.0
  • RestSharp 108.0.3
  • Newtonsoft.Json 13.0.2

Configuration

Before running the program, you need to set the following variables with your own values:

  • tenantID: The ID of your Azure AD tenant.
  • clientID: The ID of your Azure AD application.
  • userEmail: The email address of the user you want to authenticate as.
  • userPassword: The password of the user you want to authenticate as.
  • teamID: The ID of the Microsoft Teams team you want to interact with.
  • channelID: The ID of the channel within the team you want to interact with.

Example

image

How it works

The program enters an infinite loop where it checks for new messages in the specified channel every 5 seconds. If it finds a new message, it calls the RespondToMessage method which sends a reply to that message.

The reply is hardcoded as "Reply from C#!" but you can change it to whatever you want.

Running the program

To run the program, simply build and run it using your preferred C# development environment.

License

MIT

microsoft_teams_channel_bot's People

Contributors

seymenbahtiyar avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.