Git Product home page Git Product logo

fish_sale_tg_bot's Introduction

Чатбот магазин Telegram интегрированный с CMS Moltin

Чатбот для Telegram с возможностью выбирать, добавлять и удалять товар в корзине, оформлять покупку, подгружая информацию и дополняя новыми контактами клиентов в CMS Moltin.

gif

Настройки

  • Необходимо зарегистрироваться в Redislabs - забрать адрес базы данных вида redis-13965.f18.us-east-4-9.wc1.cloud.redislabs.com:16635 и его пароль.
  • Создать бота в Telegram через специального бота: @BotFather, забрать API ключ и написать созданному боту.
  • Забрать свой chat_id через @userinfobot - необходим для получения логов (ошибки будут идти именно этому пользователю).
  • Зарегистрироваться в CMS Moltin, забрать Client ID. Заполнить товары в CMS.

Переменные окружения

Создайте файл .env в корневой папке с кодом и запишите туда:

REDISLABS_ENDPOINT=АДРЕС_БД
REDIS_DB_PASS=ПАРОЛЬ_ВАШЕЙ_БД
TG_BOT_TOKEN=ВАШ_TELEGRAM_API_КЛЮЧ
TG_CHAT_ID=ВАШ_CHAT_ID
ELASTICPATH_CLIENT_ID=ВАШ_API_КЛЮЧ_MOLTIN

Запуск

Для запуска у вас уже должен быть установлен Python 3.

  • Скачайте код.
  • Установите зависимости командой:
pip install -r requirements.txt
  • Запустите скрипт командой:
python tg_bot.py

fish_sale_tg_bot's People

Contributors

v1ztep avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.