Telegram Bot and chat to create WebSite Helper (PHP+JS(JQuery2)+HTML+CSS)
Телеграм бот и чат для создания Чата-помощника на сайт
How to install and setup (english)
Как установить и настроить (по-русски)
That's how it happens:
- Online users write to chat
- Post it flies on your server
- From there Telegram-bot sends it to the correct manager
- The manager responds by Telegram
- Bot sends a message back to chat
## Screenshot:
You must've Telegram Account. If you don't have make one using https://web.telegram.org/).
- Download or clone this repo
- Create a new bot. Add user @BotFather and follow this step to create a new bot
- Edit configuration in «telegramSiteHelper/tbConfig.php»
- Upload everything to your hosting/server/VPS
- «telegramSiteHelper/tbServer.php» should run continuously, because it is a server. Add the cron job with a period of 1 every minute for this script. If the script fails, it will start again for a minute. It will be launched at the same time only one copy of the script.
- Try!
- Usage:
- Add your bot to your contact list
- Enter your manager password
- Use command «/offline», «/online», «/exit»
- Chat Who made "in haste" to start soon in the project. There are many loopholes, by which for example can be written in another chat room and peek's correspondence.
- Now, these problems do not disturb me, because chatting assistant site have been made to transfer important and sensitive information.
- When a manager and a lot of customers - can be confused whom to answer.
- ... I supplement of the comments
- It works!
- Free Forever and for any number of managers
- No need extra applications only telegrams, which is for all popular platforms
- You can rewrite and stylized chat as you want.
- Telegram is very fast
- ... I supplement of the comments
- Foolproof and work on security
- Smart distribution system communications between managers (now the bot sends a random message to the manager)
- Automatic responses from the bot when the manager was silent for a long time
- Add a name and a photo manager that is responsible chatting
- ... I supplement of the comments
- Admin panel with statistics
- Work through webhook
Reference: http://habrahabr.ru/post/264035/ (language: russian)
If you try everything, but it is not working - you can write me (https://telegram.me/surzhikov).
Если вы все перепробывали, но все-равно ничего не работает, можете написать мне в телеграм, помогу чем смогу (https://telegram.me/surzhikov).