hitrov / oci-arm-host-capacity

This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can someone explain how to get telegram working. IDK if i did something wrong but it just doesnt wanna work.

Karelak opened this issue · comments

Edit:
I have the 1:1 index.php script as in repo except this part which just sends to oci.log the timestamp:
$message = $e->getMessage(); echo date('d/m/y h:i:s'), " $message\n"; if ($notifier->isSupported()) { $notifier->notify($message); }

In the .env i have pasted in the bot api key and user id correctly set like this:
(obviously not gonna show the api key and user_id)
TELEGRAM_BOT_API_KEY=**********************
TELEGRAM_USER_ID=*****************

Send a code snippet of the "telegram" php page

Send a code snippet of the "telegram" php page

sry for taking so long. the 2 screenshots contain my copy of index.php and the .env . I believe that is what you mean by telegram php page.
also I am not sure if telegram will work this time as it may do, but rather I want to know if its been setup correctly. I am just worried it might not work as the last time I ran this script and got a server, it did not send a notification.

image
it is set to notify the success message only, you can uncomment these 3 lines in index.php to make it notify all messages.