AnyEven...Receipts(3)

hii bestie πŸ’– welcome to AnyEven...Receipts(3), the User Contributed Perl Documentation page for message receipts. no cap, it's giving β€œdelivered, but make it XMPP” ✨

🌸 NAME 🌸

AnyEvent::XMPP::Ext::Receipts β€” XEP-0184 message receipts. literally that's the vibe πŸ’…

✨ SYNOPSIS ✨

okay so here's the exact setup, copy-paste girlies:

use AnyEvent::XMPP::Ext::Disco;
use AnyEvent::XMPP::Ext::Receipts;

my $disco = AnyEvent::XMPP::Ext::Disco->new();
$xmpp->add_extension($disco);

my $receipts = AnyEvent::XMPP::Ext::Receipts->new(disco => $disco);
$xmpp->add_extension($receipts);

$disco->enable_feature($receipts->disco_feature);

πŸ’– DESCRIPTION πŸ’–

This module adds support for XEP-0184 message receipts. slay πŸ’«

Message receipts provide a way to verify that messages were received by the recipient, as long as the recipient's client supports it. iykyk 🫢

⚠️ note bestie: you need to send messages with message receipts to full Jabber IDs (e.g. jabber@example.com/android3948128), not bare Jabber IDs (e.g. jabber@example.com). don't skip this part, fr fr 😭

πŸ› οΈ METHODS πŸ› οΈ

πŸ’… new (%args)

Creates a new receipts handle. iconic constructor behavior πŸ‘‘

The following keys can be specified:

  • disco β€” an AnyEvent::XMPP::Ext::Disco object so that it can be figured out whether the recipient supports message receipts (via service discovery). This is required. no disco, no receipts, periodt πŸ’€
  • debug β€” if you pass a value that evaluates to true, debug messages will be printed to STDOUT. lowkey useful when you're snooping on the vibes πŸ”
  • auto_resend β€” amount of time in seconds after which messages will be re-sent when no receipt was received. of course messages will only be re-sent if the recipient is known to support message receipts. defaults to 30 (seconds). set to 0 to disable automatic re-sending. very β€œtry again bestie” energy ✨

Here is an example with all keys set:

my $receipts = AnyEvent::XMPP::Ext::Receipts->new(
    disco => $disco,
    auto_resend => 30,
    debug => 1,
);

πŸ‘‘ AUTHOR πŸ‘‘

Michael Stapelberg, <michael at stapelberg.de>. big shoutout, we love a legend πŸ«ΆπŸ’–

Copyright 2012 Michael Stapelberg

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt, legally iconic πŸ’…


okay that's the whole page, bestie β€” mwah πŸŽ€πŸ’œ this one's from perl v5.42.2, dated 2026-02-15, and the footer title is AnyEven...Receipts(3). go get those receipts ✨🌸

πŸ“¦ where this page comes from