Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin configured and without error, but it doesn't work #4

Open
talesam opened this issue Jul 30, 2022 · 4 comments
Open

Plugin configured and without error, but it doesn't work #4

talesam opened this issue Jul 30, 2022 · 4 comments
Labels
question Further information is requested

Comments

@talesam
Copy link

talesam commented Jul 30, 2022

Hello, I made a default configuration and to have no error I even installed apache to run, it is running without errors, apparently, but the message does not arrive on telegram, when it is sent on the forum. Before, it was configured in another forum, Discourse, nothing was changed, I just put the configuration in the config.php file of your plugin, but it doesn't work, do you need to redo something in telegram to work?

@jtojnar
Copy link
Member

jtojnar commented Aug 19, 2022

Does the https://your-flarum-forum.com/flarum-webhooks-telegram-bridge/?action=test&token=your-random-string produce anything?

Do you meant that this bridge worked with Discourse in the past?

I only ever tested it with “FoF Webhooks” extension.

@talesam
Copy link
Author

talesam commented Aug 20, 2022

A blank page appears, nothing appears.
How do I debug this?

Discourse has a plugin inside it to activate directly

<?php

return [
    'apiKey' => 'your-api-key',
    'botName' => 'your-bot-name',
    'chatId' => 'your-chat-id',
    'token' => 'your-random-string',
];

apiKey = string created in @Botfather
botName = "Now let's choose a username for your bot. It must end in bot. Like this, for example: TetrisBot or tetris_bot."
chatId = How do you get this information?
token = any string of characters

@jtojnar
Copy link
Member

jtojnar commented Aug 20, 2022

If you go to https://your-flarum-forum.com/flarum-webhooks-telegram-bridge/ without specifying any action, you should get an error:

echo 'Unknown action' . PHP_EOL;

Otherwise, something is wrong with your PHP or web server set-up.

The chatId can be obtained by following the instructions here: https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/32572159#32572159 (linked from the second step of the installation instructions).

@jtojnar jtojnar added the question Further information is requested label Aug 20, 2022
@talesam
Copy link
Author

talesam commented Aug 20, 2022

I managed to solve it, it worked, thank you very much!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants