- Go to Telegram and search for the 'BotFather' user.
- Type '/newbot' to create a new bot and follow the instructions to name your bot and get a unique API token.
- After creating the bot, BotFather will provide you with a token.
- Copy it to your clipboard.
- Log in to your Wix account and open the website you want to add Telegram chat to.
- In the Wix Editor, click on the '+' icon to add an element.
- Choose 'More' and then select 'Custom Embeds.' Drag and drop the custom code element to where you want the chat to appear on your website.
- Double-click the custom code element to open the settings. In the settings, choose 'HTML iframe' and paste the following code:
- html Copy code <iframe src='https://telegram.org/js/telegram-widget.js?3' data-telegram-post='YourBotUsername' data-width='100%'></iframe> Replace 'YourBotUsername' with your actual bot's username.
- Click 'Apply' and then 'Save' to add the Telegram chat to your Wix website.