Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I need to ask few questions:
a. How can I create whatsapp like groups?
b. How can I implement group chat similar to whatsapp?
Right now I am creating rooms and invite users into them. Users automatically removed from room,when users go offiline.
But in whatsapp group chat users still remain in group after logout or not connected and when users come online, they get all offline messages.
Please suggest me how can I create group chat similar to whatsapp group chat where group owner can add users, ban, UN-ban and get off-line message as well.
Please help me giving few tips and links to study.
Regards,
Sandeep Kumar Thakur
You should use ejabberd Muc/Sub feature to build groups like Whatsapp: https://docs.ejabberd.im/developer/xmpp-clients-bots/proposed-extensions/muc-sub/
It has been designed with that use case in mind.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I created a Telegram Bot using BotFather. My point is to notify users about sale events in the system. I can notify them when I know exactly their chat_id directly to private messages. How should I get their chat_id using their mobile number? I have an idea of getting chat_id when they subscribe into my group, but I don't know whether if it's correct way or not.
I edited my question. I'll be really appreciate if my question has got more correct.
If you use Telegram bot API to notify your users (I see you mentioned telegram-bot in tags), the documentation page says:
Bots can't initiate conversations with users. A user must either add them to a group or send them a message first.
So in order to communicate with particular user bot must receive a message from him first and then you can get chat_id from received Message object.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to do matchmaking website.
Currently I have two tables which are user profile and their partner profile(which is the requirement that those users hope for). I have to match this two table by using mysql and php. maybe fuzzy logic?
For example, user A hopes for tall partner, then system will match the partner that closes to this user and display on his wall.
But the problem is, i had do many research and still run out of idea of how to do it. Can anyone please help me or give me some advices?Thanks.
Below is what i trying to do but still have no idea.
coding
I think you need one sql:
select * from user
join
partner on
user.user_id = partner.user_id
where
user.email = 'some#email'
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am building an app for my school and I had read a little on Canvas's API and was wondering if anyone on here has played with it.
I am trying to make part of my account validation check whether or not a person is a student (and not a teacher/admin/etc.) but can't find a part of the API to help me with this.
Does anyone have any ideas?
Users in canvas can have multiple roles, that are different based on the context the user is in. For example a user could be a teacher in one course and a student in another. Or a user could be an admin in one account, and not another.
There are two different endpoints you will need to look at to check what roles a user has.
Enrollments:
https://canvas.instructure.com/doc/api/enrollments.html
An enrollment object in canvas will tell you what courses a user is in, and their role in the course.
Admins:
https://canvas.instructure.com/doc/api/admins.html#method.admins.index
The admin endpoint can give you a list of the admins in an account. But you will need an access token that has admin permissions to access this API.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm a newbie with PHP and MySQL. My project is about creating a website online on which I can put my school friend's grades and manage them. The problem is that I don't know how to separate users students/teachers.
I got an idea but still not clear. If in login page a make a radio button and add on it like this: "Student or Teacher". If they choose teacher I must test teacher's accounts to login in them to midify page.
You should look into the user/group/role pattern. You'll enter individuals into groups and assign roles to groups. You'll have to decide if you want one role per individual or many.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I was wondering if it is possible to give people something when they join my network on Facebook.
I am working on an website where people have to buy credits to get certain services. I want to give them 3 free credits when they join the group on Facebook. Is this possible?
I am also new to Facebook, so I don't know what to create. Should I create a personal account for myself, or should I make this for the company?
And how is this network called, is it a fan-club, a group, or something else?
Can someone point me in the right direction.
On a side-note: My application is in late development stage. Can I develop this setup in private mode, or should my website be already up and running? I'm working in PHP/MySQL.
You can check and see if the user is a fan of a page (your page) via their API