Initial commit
This commit is contained in:
parent
1f64ae2e35
commit
5f7cb96f97
@ -1,5 +1,5 @@
|
|||||||
# Используем официальный python образ
|
# Используем официальный python образ
|
||||||
FROM python:3.13-4-slim
|
FROM python:3.13.4-alpine3.21
|
||||||
|
|
||||||
# Устанавливаем рабочую директорию
|
# Устанавливаем рабочую директорию
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
10
bot/main.py
10
bot/main.py
@ -5,10 +5,10 @@ import asyncio
|
|||||||
import aiohttp
|
import aiohttp
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from aiogram import BaseFilter
|
|
||||||
from aiogram.types import Message
|
from aiogram.types import Message
|
||||||
from aiogram import Bot, Dispatcher, types
|
from aiogram import Bot, Dispatcher, types
|
||||||
from aiogram.filters import Command
|
from aiogram.filters import Command, BaseFilter
|
||||||
from aiogram.enums import ParseMode
|
from aiogram.enums import ParseMode
|
||||||
from aiogram.client.default import DefaultBotProperties
|
from aiogram.client.default import DefaultBotProperties
|
||||||
|
|
||||||
@ -181,14 +181,14 @@ class AllowedUsersFilter(BaseFilter):
|
|||||||
async def __call__(self, message: Message) -> bool:
|
async def __call__(self, message: Message) -> bool:
|
||||||
return message.chat.id in ALLOWED_CHAT_IDS
|
return message.chat.id in ALLOWED_CHAT_IDS
|
||||||
|
|
||||||
@dp.message(Command(commands=["start"]))
|
@dp.message(Command(commands=["start","help"]))
|
||||||
async def cmd_start(message: types.Message):
|
async def cmd_start(message: types.Message):
|
||||||
await message.answer(
|
await message.answer(
|
||||||
"Привет! Чтобы создать профиль, отправь команду:\n"
|
"Привет! Чтобы создать профиль, отправь команду:\n"
|
||||||
"<code>/create telegram_id_or_username</code>\n\n"
|
"<code>/create Telegram id or username</code>\n\n"
|
||||||
"Например:\n"
|
"Например:\n"
|
||||||
"<code>/create udochudo</code>"
|
"<code>/create udochudo</code>"
|
||||||
)
|
,reply_markup=None)
|
||||||
|
|
||||||
|
|
||||||
@dp.message(Command(commands=["info"]))
|
@dp.message(Command(commands=["info"]))
|
||||||
|
|||||||
@ -6,7 +6,7 @@ services:
|
|||||||
container_name: telezab-bot
|
container_name: telezab-bot
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- stack.env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Yekaterinburg
|
- TZ=Asia/Yekaterinburg
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user