Telegram bot for logistic - Telegram bot for logistic

Overview

Демонстрационный телеграм-бот для нужд транспортной компании Цель проекта Реализация простейшего телеграм-бота на языке программирование python с использованием библиотеки pyTelegramBotAPI

Цель программы Информировать клиента вымышленной транспортной компании Che-logistic о месте нахождения отправления (посылки) клиента в конкретный момент времени.

Как начать Скачать и установить python версии 3.10.2; Установить библиотеку pandas; Установить библиотеку pyTelegramBotAPI (тестирование проводилось на версии 3.8.2); Установить библиотеку telebot (тестирование проводилось на версии 0.0.4); Создать телеграм-бота с помощью BotFather и получить API-key; Скачать с репозитория файлы Che_inform.py и base_cargo.csv (проверить в скрипте Che_inform.py правильность пути к файлу base_cargo.csv, путь указан в переменной BASE_FILE_NAME); Создать файл с именем auth_info.txt (или указать свое имя файла и путь в скрипте Che_inform.py в переменной AUTH_FILE_NAME) и записать в него полученный API-key (использовать кодировку файла UTF-8); Запустить на исполнение файл Che_inform.py. О проекте Бот информирует любого спросившего о месте нахождения отправления (посылки) с определенным номером. Данные об отправлениях находятся в файле base_cargo.csv. Номера отправлений сгенерированы автоматически и имеют ключ (4-я цифра номера).

Задача бота:

получить номер отправления от пользователя; проверить с помощью регулярного выражения, что пользователь отправил именно цифры; проверить значение ключа номера отправления с контрольной суммой; проверить наличие номера отправления в базе; по результатам проверки вернуть пользователю сообщение об ошибке или место нахождение отправления. Demonstration telegram-bot for the needs of a transport company Project objective Implementation of the simplest telegram-bot in the programming language python using the pyTelegramBotAPI library

Program objective Inform the customer of the fictional transport company Che-logistic about the location of the parcel

Getting Started Download and install python ver 3.9.7; Install the library pandas; Install the library pyTelegramBotAPI (testing on the ver 3.8.2); Install the library telebot (testing on the ver 0.0.4); Create a telegram-bot using BotFather and get API-key; Download files from the repository Che_inform.py and base_cargo.csv (check in the script Che_inform.py the correct path to the file base_cargo.csv, the path is specified in the variable BASE_FILE_NAME); Create a file named auth_info.txt (or specify your file name and path in the script Che_inform.py in the AUTH_FILE_NAME variable) and write the received API-key to it (use the UTF-8 file encoding); Run Che_inform.py. About the project This project was developed as a demo guide for creating a telegram bot for the needs of the STEP Computer Academy. The bot informs any user about the location of a parcel with a certain number. The data about the parcels is located in the base_cargo.csv file. The parcel numbers are generated automatically and have a key (the 4th digit of the number).

The bot's task:

get the parcel number from the user; check with a regular expression that the user sent exactly the numbers; check the value of the parcel number key with the checksum; check the availability of the parcel number in the database; return an error message or the location of the parcel to the user.

Owner
M1chigun
Я делаю скрипты
M1chigun
Telegram chats reader with python

Telegram chat reader Программа полностью сливает чаты телеграм в базу данных PostgreSQL. Для использования нужен развернутый сервер постгрес и телегра

Anton 4 Dec 24, 2021
Discord Bot that leverages the idea of nested containers using podman, runs untrusted user input, executes Quantum Circuits, allows users to refer to the Qiskit Documentation, and provides the ability to search questions on the Quantum Computing StackExchange.

Discord Bot that leverages the idea of nested containers using podman, runs untrusted user input, executes Quantum Circuits, allows users to refer to the Qiskit Documentation, and provides the abilit

Mehul 23 Oct 18, 2022
Slack bot to automatically delete yubisneeze / accidental yubikey presses

YubiSnooze Slack bot to automatically delete yubisneeze / accidental yubikey presses. It will search using the regex "[cbdefghijklnrtuv]{44}" and if t

Andrew MacPherson 3 Feb 09, 2022
AuthGG is a Python library for dealing with Auth.gg apis

AuthGG AuthGG is a Python library for dealing with Auth.gg apis Installation Use the package manager pip to install requests Add the auth.py file in y

ExtremeDev 1 Dec 20, 2021
YuuScource - A Discord bot made with Pycord

Yuu A Discord bot made with Pycord Features Not much lol • Easy to use commands

kekda 9 Feb 17, 2022
Discord bot for playing Werewolf game on League of Legends.

LoLWolf LoL人狼をプレイするときのDiscord用botです。 (Discord bot for playing Werewolf game on League of Legends.) 以下のボタンを押してbotをあなたのDiscordに招待することで誰でも簡単に使用することができます。

Hatsuka 4 Oct 18, 2021
🤖 Chegg answers requested and sent by the Discord BOT to the targeted user.

Chegg BOT Description "I believe that open-source resources are a must for everyone around. Especially in the field of education. As Chegg c

Vusal Ismayilov 33 Aug 20, 2021
Image captioning service for healthcare domains in Vietnamese using VLP

Image captioning service for healthcare domains in Vietnamese using VLP This service is a web service that provides image captioning services for heal

CS-UIT AI Club 2 Nov 04, 2021
TeslaPy - A Python implementation based on unofficial documentation of the client side interface to the Tesla Motors Owner API

TeslaPy - A Python implementation based on unofficial documentation of the client side interface to the Tesla Motors Owner API, which provides functiona

Tim Dorssers 233 Dec 30, 2022
Fully automated Chegg Discord bot for "homework help"

cheggbog Fully automated Chegg Discord bot for "homework help". Working Sept 15, 2021 Overview Recently, Chegg has made it extremely difficult to auto

Bryce Hackel 8 Dec 23, 2022
🐍 The official Python client library for Google's discovery based APIs.

Google API Client This is the Python client library for Google's discovery based APIs. To get started, please see the docs folder. These client librar

Google APIs 6.2k Jan 08, 2023
Discord Bot for League of Legends live match tracker

SABot Dicord Bot for League of Legends match auto tracker Features: Search Summoners statistics in League of Legends. Auto-notifications provide when

Jungyu Choi 4 Sep 27, 2022
This is a Python bot, which automates logging in, purchasing and planting the seeds. Open source bot and completely free.

🌻 Sunflower Land Bot 🌻 ⚠️ Warning I am not responsible for any penalties incurred by those who use the bot, use it at your own risk. This BOT is com

Newerton 18 Aug 31, 2022
Python library for Seeedstudio Grove devices

grove.py Python library for Seeedstudio Grove Devices on embeded Linux platform, especially good on below platforms: Coral Dev Board (Wiki) NVIDIA Jet

Seeed Studio 123 Dec 17, 2022
Cogs for Red-DiscordBot

matcha-cogs Cogs for Red-DiscordBot. Installation [p]repo add matcha-cogs

MatchaTeaLeaf 2 Aug 27, 2022
A modern Python client for controlling Wyze devices.

Python Wyze SDK A modern Python client for controlling Wyze devices. Whether you're building a custom app, or integrating into a third-party service l

Shaun Tarves 205 Jan 02, 2023
A simple tool that lets you know when you are out of Lost Ark's queues

Overview A simple tool that lets you know when you are out of Lost Ark's queues. You can be notified via: Sound: the app will play a sound Discord web

Nelson 3 Feb 15, 2022
Adriano's Diets Consulting Bot - Parses and extracts informations about your diet (files in the Adriano's format).

Adriano's Diets Consulting Bot - Parses and extracts informations about your diet (files in the Adriano's format).

Marco A. 2 Feb 07, 2022
Melissa Songs is a telegram bot to easily find songs sending music snippets and search tracks 💃🏽🎵

Find songs on Telegram, like on Shazam... 😎 Open on telegram · Report Bug · Request Feature ⬇️ Installation To get a local copy installed and working

Joaquim Roque 21 Nov 10, 2022
Draw your telegram bot in draw.io and generate its code

README Contents: Draw your bot Install requirements Registering a telegram bot Draw bot Start point Message block Single choice block Functions block

DENIS TSITKO 23 Nov 09, 2022