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β anAnyEvent::XMPP::Ext::Discoobject 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 toSTDOUT. 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 to30(seconds). set to0to 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 & LICENSE π
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
- alpine 3.24: perl-anyevent-xmpp-doc 0.55-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms