init telegrambot

This commit is contained in:
Mikhail Shahovalov
2025-03-16 01:25:59 +03:00
parent cb6805e0c0
commit ac309f124f
2 changed files with 14 additions and 9 deletions

11
telegrambot.py Normal file
View File

@@ -0,0 +1,11 @@
import telebot
from configurations import BotSettings
bot = telebot.TeleBot(BotSettings.Token)
@bot.message_handler(content_types=['text'])
def get_text_messages(message):
bot.send_message(message.chat.id, 'Привет, я бот для управления серверами')
def start():
bot.polling(none_stop=True, interval=0)