Specify the chat.bot authorization scope. To download media from a file attachment, pass the following in yourĬ or ssages authorization scope. To create and publish aĪuthorization configured for the Chat app. Run the following command in your command-line interface: pip3 install -upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib oauth2clientĪ published Chat app. The latest Google client libraries for Python.