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

How to properly configure config.php #2

Open
talesam opened this issue Jul 23, 2022 · 1 comment
Open

How to properly configure config.php #2

talesam opened this issue Jul 23, 2022 · 1 comment
Labels
question Further information is requested

Comments

@talesam
Copy link

talesam commented Jul 23, 2022

I didn't quite understand how to configure this, the settings I got are only 2, could you specify better what is what?

<?php

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

"Use this token to access the HTTP API:"
Here comes:
[numeric sequence]:[numeric alpha sequence]
All this is the token, but in your config it has token and api?

And the rest, how is it, the other information?

@jtojnar
Copy link
Member

jtojnar commented Jul 24, 2022

See the instructions in the README:

  1. Replace your-bot-name with the bot’s username, your-api-key with the “token to access the HTTP API” you received from BotFather, your-chat-id with the id of the room id and your-random-string with random string.

The token key is not the Telegram token but rather a password that you pass within the web hook URL to prove flarum-webhooks extension is allowed to access the telegram bridge.

@jtojnar jtojnar added the question Further information is requested label Jul 25, 2022
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