Skip to content

SlackMessagePostedListener Not Working  #298

@roxanne-thiri

Description

@roxanne-thiri

Hello, can anyone help me for using SlackMessagePostedListener?
Previous RTM API version was working well to handle SlackMessagePostedListener.
However, the new Granular Scope with WebSocket Mode won't be listening any event that is created. This below part is not able to reach no matter how I put the scopes for the bot and tried to subscribe the Event API as well.

If you have any idea, please kindly help me.

		SlackMessagePostedListener messagePostedListener = new SlackMessagePostedListener()
	    {
			@Override
			public void onEvent(SlackMessagePosted event, SlackSession session) {
				// This part is not able to reach no matter how I put the scopes for the bot and tried to subscribe the Event API as well
				System.out.println(event.getChannel().getName());
			}
	    };
		session.addMessagePostedListener(messagePostedListener);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions