Coder Social home page Coder Social logo

Comments (5)

tompaana avatar tompaana commented on June 8, 2024

That isn't currently supported by this project.

At the moment we anticipate the Twitter user to be the first one to send a message. Then we match the ID of the forwarded message (to the bot) with the Twitter user ID in order to be able to respond back.

In order for proactive messages to work we need:

  • The Twitter user (recipient) ID in store - we could store every Twitter user ID we see perhaps AND
  • some rule to match the recipient in the proactive message to the Twitter user ID.

So I believe it can be done, but requires a bit of work, which unfortunately I don't have time for in the near future.

If someone wants to tackle this, there are some clues in https://github.com/tompaana/bot-message-routing project.

from twitter-bot-fw-integration.

tompaana avatar tompaana commented on June 8, 2024

Sorry, I forgot to thank you @fercom - This is genuinely valid issue.

from twitter-bot-fw-integration.

fercom avatar fercom commented on June 8, 2024

@tompaana Maybe I can do something to help you, but I will need to debug your project, any tips? I have tried to debug the Direct Line connections before but it wasn´t successful. I also think that your project could be the key to finally create a bridge between bot framework and whatsapp (here in México and in Latin América it is a big concern). Thank you for your work!

from twitter-bot-fw-integration.

tompaana avatar tompaana commented on June 8, 2024

If WhatsApp provides an API similar to Twitter, I see no reason why this approach would not work for WhatsApp as well.

What kind of a problem do you have with Direct Line?

At the moment this project is polling for messages (not great - I want to switch to using web sockets), and all incoming messages should be intercepted by putting a break point in the method DirectLineManager.PollMessagesAsync (https://github.com/tompaana/twitter-bot-fw-integration/blob/master/TwitterBotFWIntegration/DirectLineManager.cs#L88).

from twitter-bot-fw-integration.

fercom avatar fercom commented on June 8, 2024

Hi @tompaana, any update on this issue? Thanks!

from twitter-bot-fw-integration.

Related Issues (6)

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.