Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Support/Help => Topic started by: Thug on 16 02 2020, 12:32:48

Title: Twitter private messages
Post by: Thug on 16 02 2020, 12:32:48
Does Miranda support private messages in Twitter? I can chat on the website, but I can't send and receive messages in miranda even after adding a contact manually.
Title: Re: Twitter private messages
Post by: dartraiden on 16 02 2020, 15:32:32
Try to enable "twits as messages" option.
Title: Re: Twitter private messages
Post by: Thug on 16 02 2020, 21:16:03
dartraiden, It doesn't help. Tweets work, but private messages don't. Are they supposed to work? Does anybody use twitter as a regular messenger?
Title: Re: Twitter private messages
Post by: Vulpix on 16 02 2020, 23:33:00
I remember I once installed the twitter plugin for this same purpose - I had a person whom I used the private chat with. To my disappointment, the twitter plugin did not support private messages back then (I didn't even consider the possibility of that when I installed it so I was quite surprised).

Unless it has been coded in in the past year, I think private messages are not supported.
Title: Re: Twitter private messages
Post by: dartraiden on 16 02 2020, 23:35:26
https://github.com/miranda-ng/miranda-ng/issues/2218
Title: Re: Twitter private messages
Post by: Thug on 17 02 2020, 07:25:12
Vulpix, I was surprised too, because this is what you expect from Miranda in the first place :) I guess Twitter is just not so popular as a messenger. Actually I don't need it so much either, just wanted to test something.

dartraiden, Thanks. They are actually called "Direct messages" in english. They are described here (https://help.twitter.com/en/using-twitter/direct-messages) (or here (https://help.twitter.com/ru/using-twitter/direct-messages) in russian). In fact it is just an instant messenger. The API (https://developer.twitter.com/en/docs/direct-messages/api-features) is open.
Title: Re: Twitter private messages
Post by: dartraiden on 19 02 2020, 11:21:30
https://github.com/miranda-ng/miranda-ng/commit/46fd8bbce689895bfbaaa08d9bad73b879e17172
Title: Re: Twitter private messages
Post by: Thug on 19 02 2020, 13:52:13
Yep, Miranda is now receiving incoming messages, but only on logging on (not in realtime), and every time it receives all messages from the latest to the earliest (i.e in reverse order). Sending doesn't work. Guess it's too early to report bugs. But I can see what I needed now, thanks ghazan :)
Title: Re: Twitter private messages
Post by: dartraiden on 19 02 2020, 13:54:24
According to your VI - you have build #22576
Sending was implemented in 22577
You can build latest commit by yourself or just wait...
Title: Re: Twitter private messages
Post by: Thug on 19 02 2020, 14:01:22
dartraiden, Nice :) It's just not available through update yet
Title: Re: Twitter private messages
Post by: Thug on 21 02 2020, 21:55:32
Sending works fine now, but incoming messages still don't come immediately. They come in a bunch on log on, and then the same messages continue to come in a bunch every several minutes.
Title: Re: Twitter private messages
Post by: dartraiden on 22 02 2020, 13:00:08
but incoming messages still don't come immediately
Just as planned - one poll every minute.

same messages continue to come
Message duplication fixed at February 20
Title: Re: Twitter private messages
Post by: Thug on 22 02 2020, 16:22:34
dartraiden, I'd been receiving duplicate messages even after 20 feb update, but now it's ok, strange. Why are they not instant like outcoming messages anyway?
Title: Re: Twitter private messages
Post by: dartraiden on 22 02 2020, 16:31:58
translated from Russian

Quote
George Hazan, [02.22.20 19:30] Because there is no permanent connection

George Hazan, [02.22.20 19:30] And for reading the story requests there is a limit of one request per minute
Title: Re: Twitter private messages
Post by: Thug on 22 02 2020, 16:59:57
dartraiden, the delay is not one minute. It's like 15 minutes. And the messages come in reverse order.
Title: Re: Twitter private messages
Post by: Thug on 22 02 2020, 17:14:24
dartraiden, it is said on the API page that consuming Direct Messages in real-time can be accomplished via webhooks with the Account Activity API (https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/overview)
Title: Re: Twitter private messages
Post by: ghazan on 23 02 2020, 11:47:04
Thug,
order of direct messages & delay fixed
Title: Re: Twitter private messages
Post by: ghazan on 23 02 2020, 11:54:44
it is said on the API page that consuming Direct Messages in real-time can be accomplished via webhooks with the Account Activity API (https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/overview)
yes, but to use webhooks you shall be a website, not a program
Title: Re: Twitter private messages
Post by: Thug on 23 02 2020, 14:02:20
ghazan, Thanks. I have checked Plume (android client), and it works a similar way. Looks like it is the best solution for now.