refactor(telegrambot+common): move dedent+split into get_bot_message

This commit is contained in:
GeorgNation
2026-03-09 20:54:22 +06:00
parent d3d12a0104
commit 208d3f96de
2 changed files with 16 additions and 17 deletions

View File

@@ -3,6 +3,7 @@ import random
import json
import time
from telebot.async_telebot import AsyncTeleBot
from textwrap import dedent
from common.static import Static
from common.sql_queries import SQLQueries
@@ -109,7 +110,7 @@ class TelegramBot:
)
def get_bot_message(self, msg_type):
return self.static.BOT_MESSAGES.get(msg_type)
return dedent(self.static.BOT_MESSAGES.get(msg_type)).strip()
async def start(self):
if self.enabled == True: