![]() ![]() The following parameters can be appended to the javascript log in widget. Telegram provides options to configure the log in widget button. Part 3 – Configure Telegram Log in Widget: A success message will be sent after successfully linking the domain to our telegram bot.Type and send /setdomain in the message field.Note: Replace YOUR-TELEGRAM-ACCESS-TOKEN with the token from your telegram bot.įor a detailed step by step instructions on creating a new Telegram bot, follow the instructions in part 1 section of this tutorial => įollow the instructions below to link the Ngrok domain to our Telegram bot. $ export TELEGRAM_ACCESS_TOKEN=YOUR-TELEGRAM-ACCESS-TOKEN If you are running a Linux OS, open up your terminal and run: Store the access token generated on the successful creation of your bot in your OS environment variable as it would be used to verify authentication response to your web application. If you don’t already have a Telegram account, register here. You need a telegram account and bot to integrate a log in widget in your web application. This public address or hostname would be used to configure the domain for our Telegram log in. To generate a Ngrok hosted public address for your web application, open up a new terminal, navigate to your project directory and run Our local server should be running and can be accessed via We will be using Ngrok to tunnel our local application to the internet and to generate a Ngrok public URL that will be used to set the domain in our telegram bot. Navigate to your project directory in your terminal and install CodeIgniter via GitHub by running:Īfter installing CodeIgniter, create a local web server by running Let’s run down through the Prerequisites and tools required to build our system: The code for this project can be found at => Ngrok: exposes a localhost server to the internet. Telegram: is a cloud-based instant messaging and voice over IP service.Ĭodeigniter: is an open-source PHP web development framework. A two-click log in is provided subsequently while trying to log in using the widget. The widget asks for a first time user’s phone number and sends a confirmation message via Telegram to authorize the application. In this tutorial, we will be integrating a Telegram log in widget into a CodeIgniter web application. ![]() Telegram provides a customizable log in widget that makes it possible for applications to authenticate users through their Telegram account by sending a confirmation message to a user as seen below: Telegram log in will allow registered Telegram users to log in to your application without passwords. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |