# Общие настройки
SECRET_KEY=24af5f41dba9d8cc0dbc1841660da0b14d7df86ab5e0ed973cdd3bc2dbac23f6
LOG_FILE = /opt/testbot-git/logs/testzilantposter.log
# LOG_FILE = /opt/volk/logs/volkposter.log

# WORKMODE = "ZILANT"
WORKMODE = "VOLK"

 


# Webhook Responder-bot
# WEBHOOK_URL = "https://bot.aabpro.ru/volk_bot"
# WEBHOOK_PORT = 5010
# WEBHOOK_SECRET = "cc0dbc1841660da0b14d7df86ab5e0ed973c"

# Webhook Responder-bot
WEBHOOK_URL = "https://bot.aabpro.ru/testbot"
WEBHOOK_PORT = 5005
WEBHOOK_SECRET = "cc0dbc1841660da0b14d7df86ab5e0ed973c"

# Webhook Poster-bot
#POSTHOOK_URL = "https://bot.aabpro.ru/testbot2"
#POSTHOOK_PORT = 5008
#POSTHOOK_SECRET = "cc0dbc1841660da0b14d7df86ab5e0ed973c"

# Controller
WEBCTRL_URL = "https://bot.aabpro.ru/testedit"
WEBCTRL_PORT = 5006
WEBCTRL_PREFIX = "/testedit"

# WEBCTRL_URL = "https://bot.aabpro.ru/volk"
# WEBCTRL_PORT = 5009
# WEBCTRL_PREFIX = "/volk"


# логин и пароль по умолчанию для первого запуска веб-контроллера
DEFNM=admin
DEFPW=Z1l@ntAdm1n23

# VK access
# Zilant group
# VK_GROUP_ID = -3342146
# VOLK group
VK_GROUP_ID = -58475527
VK_ACCESS_TOKEN = 'e3732a7ee3732a7ee3732a7ea7e044a75fee373e3732a7e8bf4e48a52d012e946b952a8'
VK_API_VERSION = '5.131'

# MySQL database
# MDBASE = 'testposts'
# MDBASE = 'tempzilant' # debug Zilant database
MDBASE = 'volk_test' # debug VOLK database
# MDBASE = 'volkdata' # VOLK production database
MDB_HOST = 'localhost'
MDB_USER = 'testuser'
MDB_PW = 'T38tU83r69'
# MDB_USER = 'volkuser'
# MDB_PW = 'V0lK@dM1n23'

# Poster bot
# Debug bot @posto_1638_bot
# BOT_TOKEN = "8301828103:AAHDuBkw7EUkmMvv5TPpVJaLeeBLu-EB21U"
# @info_1638_bot
POSTER_BOT_TOKEN = "8215624618:AAF6VtqRtFr4twFRTiTjedSDE6txkbIy6rc"
# VOLK production bot @VOLK_informer_bot
# POSTER_BOT_TOKEN = "8279661544:AAEsJee6icCUn_AbWxhDpk2CLxQhzaartuI"
# VOLK responder bot
# RESPONDER_BOT_TOKEN = "8072579275:AAFiyKN1EPPnP5ZVZNTDGEriYJf1xADbfsY"
# RESPONDER_BOT_NAME = "VOLK_responder_bot"


# @posto_1638_bot
RESPONDER_BOT_TOKEN = "8301828103:AAHDuBkw7EUkmMvv5TPpVJaLeeBLu-EB21U"
RESPONDER_BOT_NAME = "posto_1638_bot"
# Zilant info bot
# BOT_TOKEN = "7951721805:AAEW6Go9yvOOcJSWjgJZ7E2XLPtii2qG7UU"
#
# Responder bot
# Zilant poster bot
# BOT_TOKEN = "8115998792:AAHamcNBlTgTXG0Birc1gNbZ5B7z4jMEdik"
#
# POSTER_BOT_TOKEN = "8115998792:AAHamcNBlTgTXG0Birc1gNbZ5B7z4jMEdik"
# RESPONDER_BOT_TOKEN = "7951721805:AAEW6Go9yvOOcJSWjgJZ7E2XLPtii2qG7UU"
# RESPONDER_BOT_NAME = "Zilant_info_bot"
# RESPONDER_BOT_NAME = "posto_1638_bot"

# Parameters
#
# Tag to detect org info
# Org info is normally long, publish without picture
ORG_MESSAGE_TAG = "#оргинфаЗиланткона" 
# tag to detect posts to not repost from VK
VK_NO_REPOST_TAG = "#окоЗиланта"


# Minutes delay before publishing an event
# calculated as diff between modified field and current datetime
# !! DB datetime is UTC !!
#
# Set 1 hour when Zilant is near
EVENT_POST_DELAY = 60
# keep 1 day when far from Zilant
# EVENT_POST_DELAY = 1440

# Poster channel
# Debug channel
CHANNEL_ID = "@posto1638"
# Zilant production channel
# CHANNEL_ID = "@zilantkon"
# VOLK production channel
# CHANNEL_ID = "@VOLKinformer"

MAX_CAPTION_LENGTH = 1000
MAX_TEXT_LENGTH = 4000


# Zilant API call - План Захвата
#
# add event number and trailing /
#
# PZK_PREFIX = "https://reg.konvent.ru/zk2025/draft/plan/api/add/"
# EVT_PREFIX = "https://reg.konvent.ru/zk2025/events/actions/api/"
# DESC_PREFIX = "https://reg.konvent.ru/zk2025/events/actions/"

# VOLK mode API links
# add category ID (volk24_larp for ex.)
VOLK_API_VERSION = "1.0"
VOLK_CATEGORY_LIST = "https://base.volk-nn.ru/api/categories?event=volk26&form=volk26_event"
VOLK_CATEGORY_DESC_PREFIX = "https://base.volk-nn.ru/api/category?event=volk26&form=volk26_event&category="
VOLK_EVENT_LIST_PREFIX = "https://base.volk-nn.ru/api/applications?event=volk26&form=volk26_event&apps_on_page=200&page=0&category="
 
# Event status
IS_EVENT = true
AUTO_PUBLISH = true
AUTO_PUB_EVT = true
PROCESS_EVENT_UPDATES = false
PUBLISH_SILENTLY = true
USE_SUBSCRIPTION_BOT = true
LOG_DEBUG_DATA = false


# OpenRouter
OR_KEY = "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"
OR_MODEL_NAME = "qwen/qwen3-vl-235b-a22b-instruct"
# OR_MODEL_NAME = "deepseek/deepseek-chat-v3.1"
# OR_MODEL_NAME = "deepseek/deepseek-r1-0528:free"
# OR_MODEL_NAME = "qwen/qwen3-coder:free"
