Giter Site home page Giter Site logo

telegram-purple in bitlbee about telegram-purple HOT 9 CLOSED

majn avatar majn commented on August 16, 2024
telegram-purple in bitlbee

from telegram-purple.

Comments (9)

majn avatar majn commented on August 16, 2024

Hi,

unfortunately this doesn’t work in the current version. The fallback mode is used to work with older version of libtgl, since it would already store the old authentication key before the registration, but now it doesn't do that anymore and the old SMS code is not valid with a new authentication key.

I’m currently working on a new fallback mode, where it would simply open a new chat where you can enter the SMS code, in case the requests-API to open the popup is not available.

from telegram-purple.

 avatar commented on August 16, 2024

Hi,

Sounds promising, do you think the fallback mode would work in bitlbee like that?

from telegram-purple.

majn avatar majn commented on August 16, 2024

I haven't used Bitlbee yet, I only know that there are other messengers like Empathy that also don't implement the user request and I implement that mode to make it work on those.

Its impossible to guarantee that it will work on applications that load libpurple plugins in some non-standard way, but I will try to make it work on as many as possible.

from telegram-purple.

 avatar commented on August 16, 2024

ok thanks, i will keep an eye on the project for updates and will keep trying.

from telegram-purple.

majn avatar majn commented on August 16, 2024

I commited the new fallback mode, does it work now?

from telegram-purple.

 avatar commented on August 16, 2024

It does say im signed in but no contacts. I get the code but i dont get a new conversation to fill in the code.
could it be possible to make it work like i tried before where i set 'code' variable?

what is the password for by the way?

this is what i get without a password set

input>account telegram on
Enter password for account telegram first (use /OPER)

these are the options i can set
input>account telegram set
auto_connect = 'true'
auto_reconnect = 'true'
away is empty
compat-verification = 'false'
display_name is empty
nick_format is empty
nick_source = 'handle'
password = '********' (hidden)
tag = 'telegram'
username = '#########'

from telegram-purple.

majn avatar majn commented on August 16, 2024

Hi, I just installed a bitlbee server on a VM and I can confirm that the patch doesn't work.
Setting the code as an account option doesn't work, as I need a way to to resend the SMS code during runtime and can't restart the plugin (authentication key issue I've already described in the comment above). Afaik there is no event that signals account setting changes, so I don't know when and if the code was changed.

Bitlbee doesn't seem to open a chat because the prplcb_conv_new callback will only handle Conversations of type "CHAT". Of course I could change the type of the chat but that might cause problems in Empathy or other clients that don't support group chats. To be honest, I really don't want to go down the road of adding a hack or a workaround for every single libpurple client that doesn't implement all ui operations.

Implementing this in Bitlbee is probably as easy as implementing purple_request_input and calling request_add with the right parameter.

from telegram-purple.

 avatar commented on August 16, 2024

i understand, thanks for having a look at it. I will try to find a workaround with the info you just gave.

is it perhaps possible to use data generated bij the tg-cli from vysheng?

from telegram-purple.

prtksxna avatar prtksxna commented on August 16, 2024

I am still facing this. @ghost were you able to figure out a workaround?

from telegram-purple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.