Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
import aiohttp
from aiohttp.web_request import Request

from slack.web.client import WebClient
from slack.web.slack_response import SlackResponse

from botbuilder.schema import Activity
from botbuilder.adapters.slack import SlackAdapterOptions
from botbuilder.adapters.slack.slack_message import SlackMessage

from slack.web.client import WebClient
from slack.web.slack_response import SlackResponse

POST_MESSAGE_URL = "https://slack.com/api/chat.postMessage"
POST_EPHEMERAL_MESSAGE_URL = "https://slack.com/api/chat.postEphemeral"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
from aiohttp.web_request import Request
from aiohttp.web_response import Response

from slack.web.classes.attachments import Attachment

from botbuilder.schema import (
Activity,
ConversationAccount,
ChannelAccount,
ActivityTypes,
)

from slack.web.classes.attachments import Attachment

from .slack_message import SlackMessage
from .slack_client import SlackClient
from .slack_event import SlackEvent
Expand Down Expand Up @@ -53,7 +53,7 @@ def activity_to_slack(activity: Activity) -> SlackMessage:
message.blocks = att.content
else:
new_attachment = Attachment(
author_name=att.name, thumb_url=att.thumbnail_url,
author_name=att.name, thumb_url=att.thumbnail_url, text="",
)
attachments.append(new_attachment)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# Licensed under the MIT License.

from typing import Optional, List

from botbuilder.adapters.slack.slack_message import SlackMessage

from slack.web.classes.actions import Action
from botbuilder.adapters.slack.slack_message import SlackMessage


class SlackPayload:
Expand Down
4 changes: 3 additions & 1 deletion libraries/botbuilder-adapters-slack/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"botbuilder-schema==4.10.0",
"botframework-connector==4.10.0",
"botbuilder-core==4.10.0",
"pyslack",
"slackclient",
]

TEST_REQUIRES = ["aiounittest==1.3.0"]
Expand All @@ -32,7 +34,7 @@
long_description=long_description,
long_description_content_type="text/x-rst",
license=package_info["__license__"],
packages=["botbuilder.adapters", "botbuilder.adapters.slack",],
packages=["botbuilder.adapters.slack"],
install_requires=REQUIRES + TEST_REQUIRES,
tests_require=TEST_REQUIRES,
include_package_data=True,
Expand Down