Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I send message to slack channel indicate the bot is typing? #158

Open
scyforce opened this issue Oct 19, 2019 · 1 comment
Open
Labels

Comments

@scyforce
Copy link

I am building an integration between and other services, when the integration get notified the agent from other service is typing, I want to send user_typing event to slack channel, so in the channel it will display bubble, I checked the doc this user_typing event is only available through RTM api, https://api.slack.com/events/user_typing

I wonder does JBOT provide this feature to directly using RTM client to interact with slack?

@rampatra
Copy link
Owner

Yes, it does. You can simply call reply() method with type me.ramswaroop.jbot.core.common.EventType#USER_TYPING like:

Message m = new Message();
m.setType(EventType.USER_TYPING.name().toLowerCase());
reply(session, event, m);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants