init telegrambot
This commit is contained in:
12
main.py
12
main.py
@@ -1,10 +1,4 @@
|
||||
import telebot
|
||||
from configurations import BotSettings
|
||||
import telegrambot
|
||||
|
||||
bot = telebot.TeleBot(BotSettings.Token)
|
||||
|
||||
@bot.message_handler(content_types=['text'])
|
||||
def get_text_messages(message):
|
||||
bot.send_message(message.chat.id, 'Привет, я бот для управления серверами')
|
||||
|
||||
bot.polling(none_stop=True, interval=0)
|
||||
if __name__ == '__main__':
|
||||
telegrambot.start()
|
||||
Reference in New Issue
Block a user