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
this repo store a Awoesome telegram bot for protect from your large group from bot attack.

this repo store a Awoesome telegram bot for protect from your large group from bot attack.

Mehran Alam Beigi 2 Jul 22, 2022
Some 3Commas helper bots, AltRank, GalaxyScore, Watchlist, Auto-Compound

3Commas Cyber Bot Helpers A collection of 3Commas bot helpers I wrote. (collection will grow over time) Disclaimer THE SOFTWARE IS PROVIDED "AS IS", W

Ron Klinkien 176 Jan 02, 2023
A Telegram bot for Minecraft names

MCTelegramBot About this project This bot allows you to see data about minecraft names in Telegram, it has a few commands such as: /names - Show dropp

Kami 5 May 14, 2022
Snipe fair coin launches. Contact @dannsniper on telegram for whitelist

Pancakeswap-sniper Pancakeswap Sniper bot Full version of Pancakeswap sniping bot used to snipe during fair coin launches. With advanced options and a

36 Nov 01, 2021
Python wrapper for Gmailnator

Python wrapper for Gmailnator

h0nda 11 Mar 19, 2022
Fetch torrent links from nyaa, according to releases by smoke index.

Nyaa - Smoke's index torrent fetcher Description This script parses the local (or online) anime release index (csv format) made by Big Smoke. And uses

Dinank 21 Jun 08, 2022
Auto-commiter - Auto commiter Github

auto committer Github Follow the steps below to use this repository: 1-install c

Arman Ebtekari 8 Nov 14, 2022
A Python library for inserting an reverse shell attached to Telegram in any Python application.

py tel reverse shell the reverse shell in your telgram! What is this? This program is a Python library that you can use to put an inverted shell conne

Torham 12 Dec 28, 2022
Data and a Twitter bot for the EPA's DOCUMERICA (1972-1977) program.

documerica This repository holds JSON(L) artifacts and a few scripts related to managing archival data from the EPA's DOCUMERICA program. Contents: Ma

William Woodruff 2 Oct 27, 2021
YouTube playlist Files downloaded by FDM are not organized according to the original order on YouTube

Youtube-Playlist-File-Organizer YouTube playlist Files downloaded by Free Download Manager are not organized according to the original order on YouTub

David Mainoo 3 Dec 27, 2021
An automated tool that fetches information about your crypto stake and generates historical data in time.

Introduction Yield explorer is a WIP! I needed a tool that would show me historical data and performance of my staked crypto but was unable to find a

Sedat Can Yalçın 42 Nov 26, 2022
Código para trabalho com o dataset Wine em Python

Um perceptron multicamadas (MLP) é uma rede neural artificial feedforward que gera um conjunto de saídas a partir de um conjunto de entradas. Um MLP é

Hemili Beatriz 1 Jan 08, 2022
Slash util - A simple script to add application command support to discord.py v2.0

slash_util is a simple wrapper around slash commands for discord.py This is writ

Maya 28 Nov 16, 2022
This will create new discord accounts and add them to your server

Discord-Botter This tool will create new discord accounts add them to your server, this tool needs a captcha api like capmonster.cloud or anti-captcha

Shahzain 27 Nov 30, 2022
Discord-Token-Formatter - A simple script to convert discord tokens from email token to token only format

Discord-Token-Formatter A simple script to convert discord tokens from email:pas

2 Oct 23, 2022
LoL 台版10周年活動自動輸入邀請碼

LoLTW_10Year_88Event LoLTW 8.8 周年慶 邀請碼自動輸入 設定 在 LoLTW_10Year_88Evnet.exe 的位置建立一個檔案 .env,內容如下 Bahamut_Discussion = https://forum.gamer.com.tw/C.php?bsn

古丁丁 5 Dec 13, 2021
Ap lokit lokit

🎵 FANDA PROJECT 🎵 HAI AKU FANDA! Requirements 📝 FFmpeg NodeJS nodesource.com Python 3.8 or higher PyTgCalls MongoDB Get STRING_SESSION from below:

Fatur 2 Nov 18, 2021
Authenticate your League of legends account on riot client in a few lines of code.

lol-authenticator v1.0.0 Content index Project Setup Dependencies Project Setup Dependencies Python v3.9.6 If you don't have Python installed on your

Cássio Fontoura 5 Aug 28, 2022
Companion "receiver" to matrix-appservice-webhooks for [matrix].

Matrix Webhook Receiver Companion "receiver" to matrix-appservice-webhooks for [matrix]. The purpose of this app is to listen for generic webhook mess

Kim Brose 13 Sep 29, 2022
Code release for "Cycle Self-Training for Domain Adaptation" (NeurIPS 2021)

CST Code release for "Cycle Self-Training for Domain Adaptation" (NeurIPS 2021) Prerequisites torch=1.7.0 torchvision qpsolvers numpy prettytable tqd

31 Jan 08, 2023