From 1b3da0686538b130e2662d864cd22d70726eddf4 Mon Sep 17 00:00:00 2001 From: Karo Yousefi <88065530+karo-yousefi@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:41:21 +0330 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 7305ad00..c7003aa9 100644 --- a/README.md +++ b/README.md @@ -254,6 +254,27 @@ Reference syntax: - Multi language bot +# Setting up Telegram bot + +- Start [Botfather](https://t.me/BotFather) in your Telegram account: + ![Botfather](https://github.com/karo-yousefi/Sanaie-xui/assets/88065530/faf5f979-e27d-4c05-abb2-5637ec926fa2) + +- Create a new Bot using /newbot command: It will ask you 2 questions, A name and a username for your bot. Note that the username has to end with the word "bot". + ![Create new bot](https://github.com/karo-yousefi/Sanaie-xui/assets/88065530/36a6ff7c-0b86-4291-b4a0-c339f52a3a85) + +- Start the bot you've just created. You can find the link to your bot here. + ![2023-08-26 11_22_53-Window](https://github.com/karo-yousefi/Sanaie-xui/assets/88065530/a316b086-64ed-4ffb-8be8-928175843083) + +- Enter your panel and config Telegram bot settings like below: +![Panel Config](https://github.com/karo-yousefi/Sanaie-xui/assets/88065530/cb1bebbf-c269-4260-8b15-93a11780597e) + +Enter your bot token in input field number 3. +Enter the user ID in input field number 4. The Telegram accounts with this id will be the bot admin. (You can enter more than one, Just separate them with ,) + +- How to get Telegram user ID? Use this [bot](https://t.me/useridinfobot), Start the bot and it will give you the Telegram user ID. +![User ID](https://github.com/karo-yousefi/Sanaie-xui/assets/88065530/54bd8284-9222-4354-967f-aabc2c7496fc) + + # API routes