Skip to content

Instantly share code, notes, and snippets.

@Tishka17
Tishka17 / manager.py
Last active March 17, 2024 04:55
Multibot manager
import asyncio
from asyncio import get_running_loop, AbstractEventLoop
from contextvars import Context
from logging import getLogger
from typing import Dict, List
from aiogram import Dispatcher, Bot
from .database import Repo
from .handlers import register_sender
@Stanback
Stanback / nginx.conf
Last active March 30, 2025 03:57 — forked from michiel/cors-nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which