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

Well explained configuration process #18

Open
olakunlevpn opened this issue Oct 21, 2024 · 0 comments
Open

Well explained configuration process #18

olakunlevpn opened this issue Oct 21, 2024 · 0 comments

Comments

@olakunlevpn
Copy link

The settings process from the XenForo Telegram Core plugin explains how to integrate Telegram as an authentication provider on a XenForo forum using a bot. Here's a step-by-step breakdown of how to configure it:

  1. Create a Telegram Bot:

    • Open the Telegram app and search for @BotFather, which is the official bot for managing other Telegram bots.
    • Press Start and send the command /newbot to begin creating a new bot.
    • Follow the instructions, such as setting a name and username for your bot (bot usernames always end with 'bot').
    • Once the bot is created, BotFather will send you an HTTP access token. This token is crucial as it allows your forum to communicate with Telegram but must be kept secret.
  2. Set Up the Bot's Domain:

    • Send the command /setdomain to BotFather.
    • Enter the domain of your forum without the protocol (http:// or https://) and without any subdirectories. For example, if your forum is hosted at https://example.com/forum, just enter example.com.
    • This step ensures that the bot is linked to your forum's domain.
  3. Bot Customization (Optional):

    • You can further customize your bot by setting a user picture with the /setuserpic command or change the display name of your bot using /setname. However, note that the username (ending with bot) cannot be changed.
  4. Configure Telegram in XenForo:

    • In XenForo's Admin Control Panel (ACP), navigate to Connected Accounts and find the Telegram settings.
    • Paste the HTTP access token from BotFather into the settings and save.
  5. (Optional) Enable Webhook:

    • To receive real-time updates from Telegram (instead of relying on polling), you can enable the Webhook Update Method in the Telegram options within the XenForo settings.
    • If you enable this and use a proxy service like Cloudflare, make sure to whitelist Telegram's IP ranges. These IP ranges can be found in Telegram's official documentation.
  6. Testing:

    • After configuring everything, you can start testing the Telegram authentication on your forum by trying to log in or register using your Telegram account.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant