Giter Club home page Giter Club logo

telegram_reminder's Introduction

Telegram Reminder Bot

Этот проект представляет собой Telegram-бот, который отправляет задания пользователям в соответствии со списком заданий, загруженным из Google Sheets.

  • main.py - с использованием aiogram
  • ptb_main.py - с использованием Python-telegram-bot

Установка

  1. Клонируйте этот репозиторий на свой компьютер.
  2. Установите необходимые зависимости, используя pip: pip install -r requirements.txt.
  3. Создайте файл config.py, в котором укажите ваш Telegram Bot Token, как TOKEN="YOUR_TELEGRAM_BOT_TOKEN".
  4. Создайте сервисный аккаунт Google и скачайте файл key.json. Поместите этот файл в корневой каталог вашего проекта.

Использование

  1. Заполните Google Sheet следующим образом:
    • В первом столбце укажите ID пользователя Telegram, которому должно быть отправлено задание.
    • Во втором столбце укажите текст задания.
    • В третьем столбце укажите дату, когда задание должно быть отправлено.
    • В четвертом столбце укажите время, когда задание должно быть отправлено.
    • В пятом столбце укажите время в минутах, через которое будет проверяться статус задания.
  2. Запустите бота, используя команду python3 main.py.
  3. Отправьте команду /start от имени пользователя, который должен получить задание.
  4. Менеджер может отправить задания всем пользователям, используя команду /send_tasks.

Разработка

Бот разработан на Python, используя aiogram(main.py) или python-telegram-bot(ptb_main.py) для взаимодействия с API Telegram и gspread для работы с Google Sheets.

telegram_reminder's People

Contributors

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