def add_telegram_button(repairer: list, order_pk: int):
# создание кнопок в телеграмм
keyboard = types.InlineKeyboardMarkup()
button = []
for i in repairer:
url_ = f'http://127.0.0.1:8000/add?pk_order=' \
f'{order_pk}&pk_repairer={i[0]}'
button.append(types.InlineKeyboardButton(text=i[1], url=url_))
return keyboard.add(*button)
url_ = f"{reverse("products")}"/add?pk_order={order_pk}&pk_repairer={i[0]}"
# settings.py
YOUR_SITE_BASE_URL = os.getenv('YOUR_SITE_BASE_URL')
from django.conf import settings
url_ = f"{settings.YOUR_SITE_BASE_URL}/add?pk_order={order_pk}&pk_repairer={i[0]}"