Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for deploy #41

Merged
merged 2 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ ALLOWED_HOSTS=localhost 127.0.0.1
GET_CERTS=False
[email protected]
DOMAIN=localhost

# telegram_bot
BOT_TOKEN=bot_token
5 changes: 4 additions & 1 deletion backend/bot/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ def bot_view(request: Request) -> Response:
keyboard = get_new_ambassador_keyboard()
params = {
"chat_id": user.id,
"text": "Кажется, мы еще не знакомы, заполни пожалуйста эту анкету:",
"text": (
"Кажется, мы еще не знакомы, "
"заполни пожалуйста эту анкету:"
),
"reply_markup": keyboard.to_dict(),
}
requests.post(url, json=params)
Expand Down
1 change: 0 additions & 1 deletion backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ virtualenv==20.25.1
redis==5.0.1
celery==5.3.6
pyTelegramBotAPI==4.16.1
Pillow==10.2.0