Times of India CP has a query.
There is an API restriction of sending notifications to 1000 tokens in one call, this is mentioned in docs also.
Do we have any mechanism to send notification to all subscribers in one call?
Please provide the API to perform this functionality.
Please provide any reference.
We look forward to your help.
You can refer to Topic-based Message Sending
Hope this could help with your issue. :)
I am trying to use call kit or another library to check when a user calls a certain number. I want to know when this happens so that I can send the user a notification. I know that you can detect incoming calls but not sure if outgoing calls are allowed. Is there any way for me to do this?
Thanks in advance
We are building a chat app using latest ejabberd and there is a use case where user A blocks user B. the requirement is to hide last seen or user's presence from each other. if A blocks B then its easy to hide these information from user A but how can user B be informed that user A has blocked them ? whats the best approach to tell user B the someone has blocked them on realtime while both are in a conversation , like whatsapp does now.
For presence, you do not have to use block, you can simply remove contacts from roster. That way, the other user is notified and can also stop sharing his presence.
There is XEP-0191: Simple Communications Blocking:
https://xmpp.org/extensions/xep-0191.html
https://xmpp.org/extensions/attic/xep-0191-0.2.html
I think it will give you the answers you need. Now it depends how will you implement this functionality using chosen client library like Smack.
so this is something I've been trying to think through for about 16 hours. I am coding with PHP / CuRl / etc - the bot works and everything is fine. My current issue is figuring out how to disable the bot and allow a human to begin chatting with the customer/sender.
Has anyone successfully, created a route for this ? I mean it's pretty hard from what I see, you'd have to disable etc etc. A lot of effort for my clients.
Thanks for any input.
Facebook has rolled out a "Handover Protocol" which is supposed to facilitate a combined human/bot Messenger implementation.
https://developers.facebook.com/docs/messenger-platform/handover-protocol
It is a little unclear what actually occurs in step 5:
Pass thread control: At some point in the conversation, a user may choose to do something like interact with a live agent. To handle this, pass thread control from the Primary Receiver to the Secondary Receiver. The Secondary Receiver will receive a messaging_handovers webhook event to notify it that is now controls the conversation.
This doesn't actually disable the bot (as the OP requested), and isn't in the control of the Page owner but rather of the user. It seems FB envisions the user typing something like 'I would like to chat with a human' triggering the bot to pass control...but it would be nice to let the page owner simply put the app in standby and handle the messages herself.
Once you recognize someone wants to speak to a human, set a flag that disables all actions of your bot to on.
Then, have your bot message you, or whoever will respond, that a user ID needs responding to. Have your bot continue to send all messages received from them back to you until you enable the bot again.
Create some sort of way for your bot to interact with you that allows you to send a message to a specific user, and a way to once again enable the bot interaction with the user.
Probably something like "sendMessage104012301230'Hi, sorry you couldn't find [etc]', and enableUser104012301230
There may be a better way, but those are some thoughts on how I'd do it
If you enable messages echo, whenever a human respond using the page, a echo post is sent, and inside entry->messaging->message there's no app_id.
You can use that information to disable bot replies for a certain period, or disable indefinitely until you enabled is with some admin command (that's how I'm doing)
I thought a solution could be to label the message as "unsolved". Another solution could be to have the bot mark the conversation as unread. Does anyone know if it is possibile to add a label to a conversation or mark as unread through API?
My use case is that I sometimes fail to reply to messages say sent to me via sales#example.com. Hence dropping valuable business development!
I need a way to create a filter to show all the messages missing replies.
I can't seem do this from within Gmail's filter dialog. :(
I have a bit of a stare at https://developers.google.com/gmail/api/v1/reference/users/threads/list aka the new Gmail API and I don't see a way of doing this.
Do you have any ideas? Should I be using IMAP?
you stared at the right place. you can use the gmail-api to fetch all threads:
GET https://www.googleapis.com/gmail/v1/users/me/threads?q=to:sales#example.com
then you'll have to fetch each thread:
GET https://www.googleapis.com/gmail/v1/users/me/threads/<thread-id>?fields=messages
now this will get you the list of messages. if the size is 1, then it's unanswered.