From 2a3663a463da917276c9ffac65861092d91e54d4 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sun, 31 Jan 2021 08:58:24 +0100 Subject: [PATCH] webhook: final index.php --- examples/webhook/README.md | 21 +++++++++++- examples/webhook/index.php | 67 ++++++++++++++++++++++++++++++-------- 2 files changed, 74 insertions(+), 14 deletions(-) diff --git a/examples/webhook/README.md b/examples/webhook/README.md index 19a864e..cc558de 100644 --- a/examples/webhook/README.md +++ b/examples/webhook/README.md @@ -38,6 +38,25 @@ If you have an Apache webserver with a valid SLL certificate chain and php runni - setup webhook for your server (_e.g. `bin/any_command.sh set_webhook "https://myserver.com/telegram`_) - send a command to your bot (_e.g. `/start`_) to check correct setup -#### $$VERSION$$ v1.40-dev-11-g9316caa +*Example index.php*, see [index.php](index.php) for a more complete implementation. + +```php + +``` + +#### $$VERSION$$ v1.40-dev-12-ga289cb8 diff --git a/examples/webhook/index.php b/examples/webhook/index.php index 78377b6..f07c97b 100644 --- a/examples/webhook/index.php +++ b/examples/webhook/index.php @@ -1,19 +1,60 @@