Initial commit

This commit is contained in:
Udo Chudo 2025-06-09 17:47:42 +05:00
parent 1f64ae2e35
commit 5f7cb96f97
3 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
# Используем официальный python образ
FROM python:3.13-4-slim
FROM python:3.13.4-alpine3.21
# Устанавливаем рабочую директорию
WORKDIR /app

View File

@ -5,10 +5,10 @@ import asyncio
import aiohttp
import os
from aiogram import BaseFilter
from aiogram.types import Message
from aiogram import Bot, Dispatcher, types
from aiogram.filters import Command
from aiogram.filters import Command, BaseFilter
from aiogram.enums import ParseMode
from aiogram.client.default import DefaultBotProperties
@ -181,14 +181,14 @@ class AllowedUsersFilter(BaseFilter):
async def __call__(self, message: Message) -> bool:
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):
await message.answer(
"Привет! Чтобы создать профиль, отправь команду:\n"
"<code>/create telegram_id_or_username</code>\n\n"
"<code>/create Telegram id or username</code>\n\n"
"Например:\n"
"<code>/create udochudo</code>"
)
,reply_markup=None)
@dp.message(Command(commands=["info"]))

View File

@ -6,7 +6,7 @@ services:
container_name: telezab-bot
restart: unless-stopped
env_file:
- stack.env
- .env
environment:
- TZ=Asia/Yekaterinburg
volumes: