Modify

#1178 closed enhancement (fixed)

Support purple_request_input

Reported by: dx Owned by:
Priority: normal Milestone:
Component: Purple Version: 3.2.2
Keywords: Cc:
IRC client+version: Client-independent Operating System: Other
OS version/distro:

Description

As used by the telegram-purple plugin

https://github.com/majn/telegram-purple/blob/v0.3.1/purple-plugin/telegram-purple.c#L342

There's no direct equivalent bitlbee api, only the stuff that requests oauth codes. There's request_action but only for yes/no questions.

Attachments (0)

Change History (13)

comment:1 Changed at 2014-10-10T13:20:38Z by bitlbee.org@…

Just leaving this here to get notifications.

comment:2 Changed at 2014-11-06T21:24:24Z by Sami Laine <sami.v.laine@…>

I guess there isn't any other way to subscribe than to leave a comment. So I'm doing that.

comment:3 Changed at 2014-11-18T11:16:07Z by hack3d@…

I would also very much like to know how to send the verification code back!

comment:4 Changed at 2014-11-26T15:36:50Z by anonymous

i got it working by using https://github.com/vysheng/tg to go throught the process of logging in with my number, this will put the file 'auth' in ~/.telegram-cli/ .

then, after having compiled and installed telegram-purple, start bitlbee and add account telegram with the same number. copy the auth file to /var/lib/bitlbee/.telegram-purple/+<your-number>/auth .

in bitlbee do 'account telegram set password something-anything 'account telegram set nick_format %full_name'

try to turn on the account. it disconnected the bitlbee server (on localhost) a few times at first but seems stable now

comment:5 Changed at 2014-12-01T08:23:43Z by anonymous

it disconnects all of bitlbee every couple of hours

comment:6 in reply to:  5 Changed at 2014-12-11T08:10:10Z by anonymous

Replying to anonymous:

it disconnects all of bitlbee every couple of hours

ah its my facebook account that disconnects not telegram.

comment:7 Changed at 2015-01-20T23:07:20Z by anonymous

Hi. I got it working, except when I add telegram and set it on, blist is empty and /OPER command throws "Incorrect password". I always get Telegram code when setting account on. What gives?

comment:8 Changed at 2015-01-20T23:12:40Z by anonymous

I don't think this issue is the right place to discuss or ask for questions regarding Telegram. It's not directly related to Telegram. This feature just happens to be useful for that plugin.

I suggest you use the IRC channel instead.

comment:9 in reply to:  7 Changed at 2015-02-02T10:49:52Z by anonymous

Replying to anonymous:

Hi. I got it working, except when I add telegram and set it on, blist is empty and /OPER command throws "Incorrect password". I always get Telegram code when setting account on. What gives?

did you copy the auth file to the /var/lib/bitlbee/.telegram-purple/+<your-number>/ directory?

comment:11 Changed at 2015-03-16T00:00:06Z by dx

Resolution: fixed
Status: newclosed

Fixed in https://github.com/bitlbee/bitlbee/commit/6a489929c121c20f7fad55fb6ec15c52643ee5ae

Thanks to seirl!

This will be included in the bitlbee 3.4 release which should happen in a few days.

Note that telegram-purple itself seems to be rather unstable lately. I got this segfault: https://github.com/vysheng/tgl/issues/15

comment:12 Changed at 2015-06-11T08:48:12Z by anonymous

NOTE: in bitlbee 3.4 the path for the auth file has changed. Copy to:

/var/lib/bitlbee/purple/<USERNAME>/telegram-purple/+<PHONENR>/auth.

comment:13 in reply to:  12 Changed at 2015-06-11T16:30:14Z by dx

Replying to anonymous:

NOTE: in bitlbee 3.4 the path for the auth file has changed.

In bitlbee 3.4, why would you even bother with that? You should get a query window asking you to enter the password.

(also that's a change on the telegram-purple side, not on the bitlbee side)

Modify Ticket

Action
as closed The ticket will remain with no owner.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.