I'm maintaining a group on Telegram. There is one user who keeps joining and leaving the group, I'm not even sure this is an account or what it is. I can't even send any personal messages. I'm using below-mentioned code to see the new chat participant data.
if ($message['new_chat_participant']) {
}
Here is the link of a screenshot when I try to Personal Message this person:
Like the client clearly says it's a deleted account... you can't send messages to it, because it basically doesn't exist (anymore). also they shouldn't join groups...
your question is here clearly out of place and we can't help you here, you should ask the Telegram Support (Telegram Settings > Ask a Question).
Related
I am trying to implement a messaging/mail system for my project,
The project is a forum and I want to implement that a user can message another user, the user has to go into their inbox and see the messages, the idea is that it is very similar to what eBay has or email services.
So far my idea is to create a table which holds the subject, mail content, the UserID of the user who sent the message and lastly the UserID of who is going to receive the message.
I am not sure if im missing anything and if someone can help me with a step by step guide on how to achieve this, any input will be highly appreciated it.
Thank you.
:)
I have a page that displays all of the user's notifications. I want to highlight notifications that has not yet been read by the user.
However, when I use
$notifications = tap(auth()->user()->notifications)->markAsRead();
It automatically marks all the notifications as read and I am unable to tell the blade file which notifications are those that have already been read and which notifications are those that the user has not yet seen since he/she last visited the notifications page. Any help would be appreciated. Thanks!
You should just use unreadNotifications instead of notifications, therefore you'll mark them as read but you'll know that everyone of them was unread.
I'm creating an app which will allow all users to initiate conversation with page owner using Chat-to-SMS service.
Problem is that I'm not sure how to track conversations since there would be one conversation chain from SMS Provider <-> page owner. When owner clicks reply, it needs to know which session user it needs to send the message to.
Basically, I need to do opposite what is being explained here: https://www.twilio.com/docs/quickstart/php/sms/tracking-conversations
How should I accomplish this? I can't quite wrap my head around this.
Twilio developer evangelist here.
If you are sending all the chat messages to just one SMS number then there is no easy way to tie replies back to the original message. (As a quick experiment, if you open an SMS conversation in your own phone and try to reply to any message that wasn't the latest one, you'll see it's not possible.)
There are workarounds though.
You could, when forwarding the message, generate an ID for it. Then get your page owner to include that ID when responding to that message, that way you can route the message back to the original sender and strip out the ID.
Alternatively, when replying you could always respond to the last message that came in. This relies on there not being much traffic, allowing the page owner to respond before the next message arrives. This is error prone though.
Another alternative is purchasing a new number for each new conversation. You could expire the number after a predetermined amount of time. This is made much easier with Twilio Proxy, which was announced recently and is currently in preview.
Let me know if that helps at all.
I'm building an app and the client wants the following logic:
User logs in to the app.
User selects a Friend.
User selects a gift that the User will send to his Friend.
User writes a message to his Friend.
Friend receives a SECRET notification about the gift.
With "SECRET" I mean that Friend will not be able to see WHO is the User that sent the gift.
So the concrete question is how to send a notification to the FRIEND without a clue about the USER that sent it? I think is not possible but I want to be sure and check with the experts.
And if it's not possible, what do you recommend to accomplish something like this? Should I use the app request dialog and hope that the Friend will see it? Is there any other FB API tool I can use?
I really appreciate your help.
What you're trying to achieve is not possible with FB's API. As explained already by #CBroe.
You can send a request notification if the user uses your app. However, You can do one thing but that won't be completely anonymous.
You can send the friend a notification from the user and make it just an invite to try the application and after the friend uses your app (authenticates), your app can then send a notification and say someone left a SECRET message for them. This could be after few hours or instant, Whatever you/your client prefers. However as i said, this won't be completely anonymous nor it's hard to guess who left the message unless the friend isn't smart enough to know who that could be.
With the beta Notification API something similar would be possible, but only if the receiver has authenticated your app: https://developers.facebook.com/docs/games/notifications/#impl
I am trying to build an online chat application on top of ejabberd, I am using extauth and everything was working fine till now. Now I am facing a problem in sending a message from A user who is not in B's roster (some sort of moderator or stuff), but ejabberd is blocking the message because both users are not connected, I have looked into shared roster feature of Ejabberd but it doesn't work with Extauth, I have also tried to filter packet (if packet is from moderator than simply forward it else do routine processing), but it wasn't successful (Don't know how to forward the packet and stop the execution of hooks).
Please help me how can I achieve this functionality.
Thanks
why not subscribe users to each other (by sending subscribe-subscribed sequence) - it may be temporary only. By subscribing users you will create entries in roster table, which will allow packet delivery. Also, depending on architecture of your chat app maybe try mod_muc?
good reference to all dataflows: http://xmpp.org/
Old forum though, adding the response to help and learn.
In order to bypass the hooks and forward the message , probably following steps might help
Add the hook for 'filter_packet' with more priority
In that do your validations
forward this by calling on 'run' on other hook which you are looking for
drop the package at that point( as other hook on which 'run' is called will take care)