Code Monkey home page Code Monkey logo

telegrambotwithdb's Introduction

TelegramBot With DB support

Телеграм_бот @data911_bot (https://t.me/data911_bot) работает с поддержкой базы данных main.db с помощью SQLite.

Бот может запрашивать и выводить информацию, изменять и удалять информацию в базе данных.

"Возможные команды и их значение:

  • /all - показ имеющихся в наличии позиций (мониторов в данном случае)
  • /find - поиск позиции по ключевому слову
  • /update - обновление или добавление информации
  • /insert - добавление новой позиции
  • /delete - удаление поиции
  • /hidden - скрытые команды

База данных состоит из 2-х таблиц.

  • inventory содержит актуальные (условно имеющиеся) позиции. Если позицию удалить из таблицы inventory, то она попадет во вторую таблицу: deleted. Это сделано для безопасности данных.

Так называемые скрытые команды:

  • /show_deleted - позволяет посмотреть все удаленные позиции
  • /show_all_with_deleted - выводятся актуальные и удаленные позиции через FULL JOIN.

databot

Telegram bot with data base support

Telegram_bot @data911_bot (https://t.me/data911_bot) works with database support main.db with using SQLite.

The bot can query and display information, change and delete information in the database.

"Possible commands and their meaning:

  • /all - display available positions (monitors in this case)
  • /find - search for a position by keyword
  • /update - update or add information
  • /insert - adding a new position
  • /delete - delete position
  • /hidden - hidden commands

The database consists of 2 tables.

  • inventory contains current (conditionally available) positions. If the item is removed from the inventory table, then it will end up in the second table:
  • deleted. This is done for data security.

The so-called hidden commands:

  • /show_deleted - allows you to see all deleted items
  • /show_all_with_deleted - shows current and deleted positions via FULL JOIN.

telegrambotwithdb's People

Contributors

igorkunovski 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.