jdev - 2026-07-31


  1. lovetox

    Ah TIL

  2. lovetox

    And you display buttons then for the commands?

  3. lovetox

    Or a drop-down?

  4. jjj333_p (any pronouns)

    > And you display buttons then for the commands? thats what telegram does

  5. jjj333_p (any pronouns)

    https://downloadable.pain.agency/file_share/019fb706-3175-7162-bb5c-ca1eb81ab34e/4f6c974f-91fe-4012-a07d-ede4e2bcf357.png

  6. lovetox

    I think that example would be better with a dropdown

  7. lovetox

    Bots can now also send data forms

  8. lovetox

    A single choice list can be interpreted by a client as a list of buttons for example

  9. jjj333_p (any pronouns)

    > I think that example would be better with a dropdown possibly

  10. jjj333_p (any pronouns)

    i was just saying it is what telegram does

  11. jjj333_p (any pronouns)

    it seems that telegram has some mechanism for the bot dictating what the layout is, and also it tries to make messages interactive and act like the form themselves somehow, but also everythings a chat message and bot commands are / commands but you have a list of them somehow its confusing

  12. jjj333_p (any pronouns)

    telegram is an ...interesting platform

  13. lovetox

    I think adhoc has benefits in multi stage flows, single stage, simply sending a form and client answers with form seems easier?

  14. lovetox

    At least if it's whished that the flow shows in the chat

  15. jjj333_p (any pronouns)

    i mean this is multistage sometimes too, no matter though

  16. jjj333_p (any pronouns)

    i just wish for it to be easier to open an adhoc command list on a user

  17. lovetox

    With adhoc the message is always just a gate to another dialog where I do adhoc, it would be hard to display the interactions in the chat

  18. jjj333_p (any pronouns)

    🤷 tbh i think thats a little up to implementation differences

  19. lovetox

    > i just wish for it to be easier to open an adhoc command list on a user then the message with adhoc commands is the best

  20. jjj333_p (any pronouns)

    > i just wish for it to be easier to open an adhoc command list on a user okay in dms its right where i expected

  21. jjj333_p (any pronouns)

    https://downloadable.pain.agency/file_share/019fb726-81f8-7833-989d-7cd1361c1572/96c68f98-1423-44c6-a895-b3e76d53c053.png

  22. lovetox

    I'm open to implementing that in Gajim

  23. jjj333_p (any pronouns)

    would be nice to having it on a message though, especially if it worked in mucs

  24. lovetox

    As pointed out you can include commands in a message

  25. jjj333_p (any pronouns)

    > As pointed out you can include commands in a message yes

  26. jjj333_p (any pronouns)

    im saying it would be nice to use that

  27. lovetox

    But is it just so the user easier discovers the commands?

  28. lovetox

    Because we could solve that problem also just in the client

  29. lovetox

    In what situation would the bot send this message

  30. jjj333_p (any pronouns)

    ive not read the spec, but im thinking it could be a unique to an interaction. i dont know what that would be used for though

  31. jjj333_p (any pronouns)

    similar to like how bots on discord often use ✅ and ❌ reactions for interactions or something

  32. jjj333_p (any pronouns)

    > ive not read the spec, but im thinking it could be a unique to an interaction. i dont know what that would be used for though unique to the message, like context dependent adhoc command list

  33. jjj333_p (any pronouns)

    again no idea how this would look though

  34. lovetox

    I can imagine stuff like you join a new server and then a bot sends you a message, hey fill out this form

  35. jjj333_p (any pronouns)

    yeah something like that is a good example

  36. jjj333_p (any pronouns)

    though in this case you could just use muc pms and text input would probably be sufficient

  37. singpolyma

    > And you display buttons then for the commands? Yeah I do

  38. erik wonders which client singpolyma is developing

  39. moparisthebest

    you'll get a shorter list if you ask which client he isn't developing

  40. Sunglocto

    > erik wonders which client singpolyma is developing all of them

  41. erik

    well, not the one that lovetox is developing, I'd say, because otherwize he'd not be asking the buttons-for-commands question.

  42. erik knows lovetox works on Gajim

  43. lovetox

    cheogram

  44. moparisthebest

    cheogram android, and snikket, and borogrove (formerly snikket sdk) and like a dozen clients on top of that ?

  45. luca

    Does anyone have some code example for implementing XEP-0115 verification string generation? https://xmpp.org/extensions/xep-0115.html#ver

  46. moparisthebest

    probably could just ask your local LLM to do it for you

  47. theTedd

    Sections 5.2 and 5.3 have worked examples

  48. theTedd

    (assuming you want it for testing)

  49. luca

    Yeah that's one thing, but it would also be nice to know if this is actually used in the wild and everyone doesn't just hardcode strings and checks everything but that hash

  50. raphael

    I’m experiencing weird behavior with a bot… I have multiple clients set up (Fluux on my computer + monal on my computer + monal on my phone) and have set up an “echo” bot where when I receive a message I just reply “got a message: …”, and for some reason the messages seem to only appear on clients I don’t actively have open

  51. raphael

    like: - I message the bot via fluuux - the reply only comes to monal is this some “obvious” kind of failure mode that I should be aware of? maybe some XEP I have or don’t have active

  52. theTedd

    1. check that Carbons (XEP-0280) is supported and active; 2. check the status priority of each client (ideally they should all be 0)

  53. raphael

    Oh OK we might have a winner here, the desktop client seems to have a priority of 50 (vs mobile clients with priority 0)… hmm

  54. moparisthebest

    raphael: sounds like your bot doesn't enable carbons, you can just send the stanza to do so don't need to bother checking anything

  55. moparisthebest

    priority doesn't matter with carbons

  56. raphael

    ahhh my bot has to enable carbons as well, gotcha

  57. vpzom

    > Yeah that's one thing, but it would also be nice to know if this is actually used in the wild and everyone doesn't just hardcode strings and checks everything but that hash I have a partial implementation in Deepish: https://gitlab.com/vpzomtrrfrt/deepish/-/blob/b945baa2d7bc93de3744c6e2b2f3404c40495d5f/src/util/connection.ts#L3461

  58. vpzom

    but yeah in practice I only ever call it with constants

  59. singpolyma

    > ahhh my bot has to enable carbons as well, gotcha Not if it's just sending. Which it sounds like it is

  60. raphael

    https://drop.szsfan.xyz/dbg.log here’s a current log of what’s going on, I’m going to fork this to make this a bit more usable tho/clean this stuff up

  61. raphael

    lines with "DEBUG: socket sent “ are what I’ve been sending over the wire