Giter Site home page Giter Site logo

SendMessage Issue about phptdlib HOT 4 CLOSED

bugbaal avatar bugbaal commented on June 18, 2024
SendMessage Issue

from phptdlib.

Comments (4)

yaroslavche avatar yaroslavche commented on June 18, 2024

Hi.
This extension don't perform any additional code. It provides only the wrapper for tdlib json client functions. So, if you're facing some issues with them - please check tdlib documentation.
Can't help with this, sorry.

from phptdlib.

bugbaal avatar bugbaal commented on June 18, 2024

And I did, and he says to manage the updateMessageSendSucceeded update.
Don't know how to use it with your library.
Because when I check the response from sendMessage it is always messageSendingStatePending even if it send the message correctly or not.

from phptdlib.

yaroslavche avatar yaroslavche commented on June 18, 2024

td_json_client_receive
If you're using query, then it always returns a response by extra. But you can get all responses before that response.

from phptdlib.

bugbaal avatar bugbaal commented on June 18, 2024

yes, i'm using query to send the "sendmessage" command.
Maybe I found a solution.

  1. Send the sendmessage by ->query().
  2. query response with body message and it always says that status is: messageSendingStatePending
  3. Now I add and call ->receive() method
  4. Receive command send me all updates and I keep it alive until I receive the status updateMessageSendSucceeded.
    I was using the ->getReceivedResponses() that doesn't work for me. It is always null
    Thank you for supporting me

from phptdlib.

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.