Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 601 Bytes

create-channel-from-group-python-snippets.md

File metadata and controls

22 lines (15 loc) · 601 Bytes
description
Automatically generated file. DO NOT MODIFY
from msgraph import GraphServiceClient
from msgraph.generated.models.channel import Channel
from msgraph.generated.models.channel_membership_type import ChannelMembershipType

graph_client = GraphServiceClient(credentials, scopes)

request_body = Channel(
	display_name = "Architecture Discussion",
	description = "This channel is where we debate all future architecture plans",
	membership_type = ChannelMembershipType.Standard,
)

result = await graph_client.teams.by_team_id('team-id').channels.post(request_body)