Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629537
unset.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
462 B
Referenced Files
None
Subscribers
None
unset.php
View Options
<?php
// Load composer
require
__DIR__
.
'/vendor/autoload.php'
;
$API_KEY
=
'your_bot_api_key'
;
$BOT_USERNAME
=
'username_bot'
;
try
{
// Create Telegram API object
$telegram
=
new
Longman
\
TelegramBot
\
Telegram
(
$API_KEY
,
$BOT_USERNAME
)
;
// Delete webhook
$result
=
$telegram
->
deleteWebhook
(
)
;
if
(
$result
->
isOk
(
)
)
{
echo
$result
->
getDescription
(
)
;
}
}
catch
(
Longman
\
TelegramBot
\
Exception
\
TelegramException
$e
)
{
echo
$e
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 15, 7:09 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
146048
Default Alt Text
unset.php (462 B)
Attached To
Mode
R123 php-telegram-bot
Attached
Detach File
Event Timeline