Git Product home page Git Product logo

Comments (5)

rampatra avatar rampatra commented on May 18, 2024 1

I thought while replying back, the type will be always message which is not. So I think its a minor bug.

from jbot.

rampatra avatar rampatra commented on May 18, 2024

Yes, if you reply with type as typing then it should work. It may not be working in some cases where in no time you send back a reply with type message. Are you sure you're not sending a reply with type message instantly after typing?

from jbot.

abstract-karshit avatar abstract-karshit commented on May 18, 2024

Thanks for the reply. Yes Its working, when I went through your reply method it was resetting the message type so I have written a custom reply method using reply method as reference and it works like a charm.

from jbot.

rampatra avatar rampatra commented on May 18, 2024

@abstract-karshit but the reply() method is final. Did you modify the library to get it working? I think this maybe an issue which needs to be solved. I can set the type to message only if it isn't set by the user or something.

from jbot.

abstract-karshit avatar abstract-karshit commented on May 18, 2024

Yes, reply method is final. I re-wrote the method in a my own class BotUtils.
Yes, I think we should set the type only when it isn't set by the user, I didn't modified the source code as I am using it as a maven dependency.
Also, one more thing to point out is when we encode message, the user mention is not working.
<@userid> doesn't works, so I removed encode in my version of the reply method.

from jbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.