This repository was archived by the owner on Jan 5, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
libraries/botframework-connector Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ Client creation (with authentication), conversation initialization and activity
3939
4040.. code-block :: python
4141
42- from microsoft. botbuilder.schema import *
43- from microsoft. botframework.connector import ConnectorClient
44- from microsoft. botframework.connector.auth import MicrosoftTokenAuthentication
42+ from botbuilder.schema import *
43+ from botframework.connector import ConnectorClient
44+ from botframework.connector.auth import MicrosoftAppCredentials
4545
4646 APP_ID = ' <your-app-id>'
4747 APP_PASSWORD = ' <your-app-password>'
@@ -50,7 +50,7 @@ Client creation (with authentication), conversation initialization and activity
5050 BOT_ID = ' <bot-id>'
5151 RECIPIENT_ID = ' <user-id>'
5252
53- credentials = MicrosoftTokenAuthentication (APP_ID , APP_PASSWORD )
53+ credentials = MicrosoftAppCredentials (APP_ID , APP_PASSWORD )
5454 connector = ConnectorClient(credentials, base_url = SERVICE_URL )
5555
5656 conversation = connector.conversations.create_conversation(ConversationParameters(
@@ -130,4 +130,4 @@ Licensed under the MIT_ License.
130130.. _MSRC PGP : https://technet.microsoft.com/en-us/security/dn606155
131131.. _Security TechCenter : https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
132132
133- .. <https://technet.microsoft.com/en-us/security/default>`_
133+ .. <https://technet.microsoft.com/en-us/security/default>`_
You can’t perform that action at this time.
0 commit comments