Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

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

Open
Karelak opened this issue Mar 28, 2024 · 3 comments

Comments

@Karelak
Copy link

Karelak commented Mar 28, 2024

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=*****************

@desioxss
Copy link

Send a code snippet of the "telegram" php page

@Karelak
Copy link
Author

Karelak commented Apr 1, 2024

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.

@daniel-d7
Copy link

daniel-d7 commented Jun 3, 2024

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants