teams 包

模块

teams_activity_extensions
teams_activity_handler
teams_helper
teams_info
teams_sso_token_exchange_middleware

TeamsActivityHandler
TeamsInfo
TeamsSSOTokenExchangeMiddleware

如果活动名称为 signin/tokenExchange,则自中间件将尝试交换令牌,并删除传入调用的重复数据,确保只处理一个交换请求。

初始化 类的实例。

登录令牌交换。

函数

teams_get_channel_id

teams_get_channel_id(activity: Activity) -> str

参数

名称 说明
activity
必需

teams_get_team_info

teams_get_team_info(activity: Activity) -> TeamInfo

参数

名称 说明
activity
必需

teams_notify_user

teams_notify_user(activity: Activity, alert_in_meeting: bool = None, external_resource_url: str = None)

参数

名称 说明
activity
必需
alert_in_meeting
默认值: None
external_resource_url
默认值: None