Not logged in. · Lost password · Register
Forum: agsXMPP RSS
zebany #1
Member since Mar 2006 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Roster and Subscriptions
I'm working on a gtalk bot based on agsXMPP, it works great, my question is;
Do i have to add every single user to my roster? I mean if i just add a subscription but not add them to my roster, what happens? Since it is a bot, i don't need a crowded roster. I just want people to be able to send messages whenever they want and i can respond. Is presence subscription enough for this or shall i manage my bot's roster too? (which will be transferred all every reconnect)

Alex #2
Member since Feb 2003 · 4274 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post

The subscription state is stored with the roster and is part of the roster. So you have to add every user to your roster. Some public XMPP servers have limits in the roster (eg. max 200 contacts). I don't know if google has this limits too. If they have them then it would be better if you install your own xmpp server for your bot.

Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS