aboutsummaryrefslogtreecommitdiff
path: root/tgrecv
diff options
context:
space:
mode:
authorGuillermo Ramos2019-06-30 13:46:45 +0200
committerGuillermo Ramos2019-06-30 13:46:45 +0200
commit428615368f7c3c69ad415859162a432cf0866458 (patch)
tree0677b7a5657f155cce38129dd7708216fe830dee /tgrecv
parent95faae2a4d687a189127621faaeecf17a040c3eb (diff)
downloadtgutils-428615368f7c3c69ad415859162a432cf0866458.tar.gz
Add examples to documentation
Diffstat (limited to 'tgrecv')
-rwxr-xr-xtgrecv5
1 files changed, 5 insertions, 0 deletions
diff --git a/tgrecv b/tgrecv
index a98820f..bd6e6ad 100755
--- a/tgrecv
+++ b/tgrecv
@@ -126,6 +126,11 @@ I<token>, and outputs it as a JSON array. The array can contain multiple
updates. The connection is blocking (long polling), so it waits until an update
is available before exiting.
+=head1 EXAMPLE
+
+ tgrecv --auto-offset --token 123456789:abcdefghijklmnopqrstuvwxyzABCDEFGHI \
+ | jq .[0].message
+
=head1 AUTHENTICATION
To get the bot token, this program will check (in order):