Example of a bot.json file#
Below is a sample code of the bot.json
file.#
Attention
In order for the bot to work correctly, you need to fill in all the fields of the file.
1{
2 "BOT_TOKEN": "NUM_STR_TYPE",
3 "update_id": "INT-FLOAT_TYPE",
4 "business_connection": {
5 "id": "STR_TYPE",
6 "user": {
7 "id": "INT-FLOAT_TYPE",
8 "is_bot": "BOOL_STR_TYPE",
9 "first_name": "STR_TYPE",
10 "last_name": "STR_TYPE",
11 "username": "STR_TYPE",
12 "language_code": "STR_TYPE",
13 "is_premium": "BOOL_STR_TYPE"
14 },
15 "user_chat_id": "INT_TYPE",
16 "date": "INT-FLOAT_TYPE",
17 "can_reply": "BOOL_STR_TYPE",
18 "is_enabled": "BOOL_STR_TYPE"
19 },
20 "GIGACHAT": {
21 "TOKEN": "STR_TYPE",
22 "AUTH_TOKEN": "STR_TYPE",
23 "ANSWER_SETTING": {
24 "TEMPERATURE": "INT-FLOAT_TYPE",
25 "TOP_P": "INT-FLOAT_TYPE",
26 "N": "INT-FLOAT_TYPE"
27 }
28 },
29 "MYSQL": {
30 "HOST": "STR_TYPE",
31 "USERNAME": "STR_TYPE",
32 "PASSWORD": "STR_TYPE",
33 "PORT": "INT-FLOAT_TYPE",
34 "DB_NAME": "STR_TYPE"
35 },
36 "BUSINESS_HANDLER": {
37 "THANKS": {
38 "THANKS_STICKER": "NONE",
39 "THANKS_TEXT": {
40 "MSG": "🙏 thanks",
41 "OFFSET": 0,
42 "LENGTH": 2,
43 "C_E_ID": "5285070644864628879"
44 }
45 },
46 "CONGRATULATION": {
47 "CONGRATULATION_STICKER": "NONE",
48 "CONGRATULATION_TEXT": {
49 "MSG": "☺️ Спасибо большое! 🙏",
50 "OFFSET": 0,
51 "LENGTH": 2,
52 "C_E_ID": "5427161992811004191"
53 }
54 },
55 "PROBLEM_WITH_BOT": {
56 "PROBLEM_WITH_BOT_STICKER": "CAACAgIAAxkBAAEBYCVmP0fUN7Ku4cFsiH8r5ao4G0-7HQACkEMAAt5q0UtcycYGwYpCCTUE",
57 "PROBLEM_WITH_BOT_TEXT": {
58 "MSG": "Здравствуйте! Принято. Сейчас начнём устранять проблему 🤖. Для начала, напишите Ваш EMail для связи с Вами и для разработчика (чтобы устранить проблему). Ожидаю.",
59 "OFFSET": 56,
60 "LENGTH": 2,
61 "C_E_ID": "5775888014119015271"
62 }
63 }
64 },
65 "EMAIL_DATA": {
66 "EMAIL": "STR_TYPE",
67 "NAME": "STR_TYPE",
68 "PORT": INT_TYPE,
69 "HOST": "STR_TYPE",
70 "PASSWORD": "STR_TYPE",
71 "ADMIN_EMAIL": "STR_TYPE"
72 },
73 "YOOKASSA_API": {
74 "API_ID": "STR_TYPE",
75 "API_KEY": "live_KEY_STR_TYPE"
76 }
77}