Discussion:
Twitter Chat
Jim Geldermann
2013-02-09 17:26:50 UTC
Permalink
I'm in the process of writing a gateway plugin and am a bit perplexed as how in instantiate a Twitter chat. The perplexity is what to use as a contact.

In the AIMessageViewController when I look at the aiChat's listObject

NSLog(@"sending the message %@", [[chat listObject] description]);

I get 2013-02-09 11:15:26.477 Adium[9397:303] sending the message (null)

I've tried initiating the chat with nil

_twtChat = [self chatWithContact:nil];

but I get a null error instantiating the chat.

Any help instantiating a chat for Twitter is appreciated.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20130209/1bde6d6c/attachment.html>
Thijs Alkemade
2013-02-09 17:40:08 UTC
Permalink
Post by Jim Geldermann
I'm in the process of writing a gateway plugin and am a bit perplexed as how in instantiate a Twitter chat. The perplexity is what to use as a contact.
In the AIMessageViewController when I look at the aiChat's listObject
I get 2013-02-09 11:15:26.477 Adium[9397:303] sending the message (null)
I've tried initiating the chat with nil
_twtChat = [self chatWithContact:nil];
but I get a null error instantiating the chat.
Any help instantiating a chat for Twitter is appreciated.
Hello Jim,

What sort of chat are you trying to create, exactly? A Direct Message, or
a public message on the user's timeline?

In the first case, you probably will want to use -contactWithUID:

In the second case, you should use AITwitterAccount's -timelineChat, which
internally is a group chat with all your followers as participants.

Hope this helps,
Thijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 588 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20130209/66cc8ab0/attachment.bin>
Loading...