Comments (3)
In this particular instance, can't it be fixed by uploading the attachment before we create the sendMessage form? We could change our convention to only mergeWithDefault immediately before sending off a form. Could we maybe even integrate it into the post? Just spitballing.
from facebook-chat-api.
We can't integrate into the post without being sure that it won't break certain post request that don't have all those fields. We don't know what FB's doing with our requests.
I think the only way would be to be very consistent, or have two different functions post
and postWithDefaults
.
from facebook-chat-api.
I wouldn't be against a postWithDefaults
to enforce consistency. We could even go so far as to remove the ability to call mergeWithDefaults
directly.
from facebook-chat-api.
Related Issues (20)
- chrome extension HOT 1
- How to change Group Thread Name? HOT 1
- Cannot receive "message" from api.listenMQTT when trying to change userAgent HOT 2
- sendMessage can't use param url HOT 1
- api.getThreadList doesn't return page and user url
- Cannot read property 'name' of undefined
- Error 1357005 when setTitle
- how to listen to Message Requests from non-friend accounts? HOT 1
- Rate limit? HOT 1
- esockettimedout HOT 1
- fix login erorr HOT 9
- api.sendMessage is not working now err: 1357005 HOT 2
- The attachment could not be found. HOT 1
- Unexpected token < in JSON at position 0 HOT 11
- Error when use api.listenMQTT (SyntaxError: Unexpected token ↓ in JSON at position 0) HOT 1
- Parse error when use avatar sticker
- Unhandled rejection TypeError: Cannot read properties of undefined (reading 'messageCount') HOT 1
- how do I make the bot wait for a reply HOT 2
- Recieve messages HOT 1
- Issue with Login: Error retrieving userID HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-chat-api.