Giter Site home page Giter Site logo

friends_finder_bot's Introduction

Aiogram bot template

Outline a brief description of your project.

Table of Contents

Антифлуд

###Отдельно для хендлера

  1. utils.antiflood import rate_limit
  2. @rate_limit(seconds, command)
    • seconds is required ###Для всех хендлеров
  3. middlewares/antiflood... > 2 (2 is seconds)

Занятые порты на MacOC

  1. sudo lsof -i :5432
  2. kill -id-

Отправка фото/документов

  root_path = config.tg_bot.root_path
  path_to_download = path.joinpath("tgbot", "pictures", "instruction.png")  # preview
  
  with open(path_to_download, 'rb') as photo:
     await callback.bot.send_photo(callback.message.chat.id, photo)

Миграции

создать автоматическую миграцию

1)my-project/db/alembic $ alembic revision --autogenerate -m "first migrate"

применить последнюю миграцию

2)my-project/db/alembic $ alembic upgrade head

RUN

  1. настроить .env
  2. запустить бд в докере
  3. $ngrok http 3001
  4. $python main.py

Usage

How does one go about using it? Provide various use cases and code examples here.

write-your-code-here

Project Status

Project is: in progress / complete / no longer being worked on. If you are no longer working on it, provide reasons why.

Room for Improvement

Include areas you believe need improvement / could be improved. Also add TODOs for future development.

Room for improvement:

  • Improvement to be done 1
  • Improvement to be done 2

To do:

  • Feature to be added 1
  • Feature to be added 2

Acknowledgements

Give credit here.

  • This project was inspired by...
  • This project was based on this tutorial.
  • Many thanks to...

Contact

Created by @flynerdpl - feel free to contact me!

friends_finder_bot's People

Contributors

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