chat

Telegram Bots: secret chats possible?

最后都变了- 提交于 2019-12-23 06:56:10
问题 Telegram offers "secret chats". Is it possible that a bot opens a secret chat and sends a message? I could not find any method or parameter for this function. 回答1: Telegram's Bot API does not support secret chats at the moment. You can read the documentation, but a short explanation is: end-to-end encryption is used in secret chats which is tricky to implement for bots and requires additional work. There's no word on when it'll be supported, if ever. At any rate, Telegram Bots are generally

Get Friends list from openfire Server

送分小仙女□ 提交于 2019-12-23 06:39:07
问题 How to get all friends programmatically from openfire server in objective C, I am using XMPP Framework for chat Functionality. 回答1: Here is a function to fetch friends. Add your host name in below function. func getList() { let query = try! XMLElement(xmlString: "<query xmlns='http://jabber.org/protocol/disco#items' node='all users'/>") let iq = XMPPIQ(type: "get", to: XMPPJID(string: "Your Host Name"), elementID: xmppStream.generateUUID(), child: query) iq?.addAttribute(withName: "id",

Facebook Chat difficulty user's JID

岁酱吖の 提交于 2019-12-23 06:03:05
问题 I've a problem connecting to Facebook's XMPP to use chat api. In fact the only problem is that I don't know the JID, sometime user doesn't have provided his username and it won't work simply by settings his/her userID as an JID. I've tried my own JID from facebook that I use in iChat and it worked perfectly. So, according to the docs I should rather log user to the chat by using access token instead of username/password. I'm successfuly logged in, the accesss token is in the form: 18112...

Continuously Running Socket.io Service in Android

∥☆過路亽.° 提交于 2019-12-23 05:23:10
问题 I am developing a chat client using Socket.io as a means of communicating with the server. As such, using GCM is not exactly an option. I want be able to receive chats at any time (even if the application is closed); essentially the socket needs to be listening at all times. I understand that a service can be started when the phone boots and kept running. However, this seems to be a rather bad idea on a mobile device, draining battery and the like. Researching, it seems that GCM is the most

Is it possible to implement voice chat in a browser without plugins?

守給你的承諾、 提交于 2019-12-23 04:08:10
问题 CampFireNow has a voice chat over the browser. It seems that you do not need any plugins to install to get it working. This is a contrast to Gmail, where I needed to install an app. I would like to implement a similar feature for my application. Is there a way to do this without requiring a plugin? 回答1: Flash or Java would be the only things that would be browser agnostic. Else, you definitely need a plugin, unless the specific browser provides you a method to record. 回答2: I've never used

Trying to reach my openfire server through my android client

旧巷老猫 提交于 2019-12-23 03:12:12
问题 I want to create my own XMPP android client . So I begane with the samsung tutorial which interface itself with gmail and that you can find here : http://developer.samsung.com/android/technical-docs/Building-a-Chat-Application It worked like a charm. Now I tryed to setup this client for working with my openfire server. For this I converted the folowing lines: public static final String HOST = "My public ip(82.65....)"; public static final int PORT = 5222; public static final String SERVICE =

chat application on appengine

こ雲淡風輕ζ 提交于 2019-12-22 18:27:26
问题 I am willing to implement a chat website on App Engine. But I found that App Engine will not allow me to go with server push. (as it will kill the response after 30 sec). So whats the other method that can be used? Will polling cause bad user experience? Meaning will the user have to wait for some time to retrieve new messages from the server? What will be the ideal polling interval? If you use very small polling intervals, will my bandwidth get exhausted? Will I suffer performance problems?

Make c++ not wait for user input

半腔热情 提交于 2019-12-22 17:54:32
问题 So, i am trying to make a c++ WinSock2 chatter, just for learning. It is a console application and i want to take user input (for sending to the counterpart), but i still want to be able to recive. (so you can write a message while still being able to recive one)... When using cin >> input; the program "pauses" until the user has enterd something, that way it is "turn based" (one user writes something and sends it, then the other user writes something and sends it). Is there a way to make the

Chat Application in ASP.NET

 ̄綄美尐妖づ 提交于 2019-12-22 14:14:09
问题 I've to write an Ajax chat web application in ASP.NET for a friend, and I've a question: if client1 sends a message to client2, how should the application send the message to client2? Is there a better way than sending requests to the server, "asking" if there are new messages? Is it possible to directly send the message to the client? 回答1: Best thing you can do is use a Persistent HTTP Connection. The way google does with Google Talk on their GMAIL website. 回答2: Remember that HTTP is a