From 428615368f7c3c69ad415859162a432cf0866458 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Sun, 30 Jun 2019 13:46:45 +0200 Subject: Add examples to documentation --- tgrecv | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tgrecv') diff --git a/tgrecv b/tgrecv index a98820f..bd6e6ad 100755 --- a/tgrecv +++ b/tgrecv @@ -126,6 +126,11 @@ I, 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): -- cgit v1.2.3