# - *- coding: utf- 8 - *-
import telebot
import sqlite3
import time
import datetime
import requests
import configparser
import random
from telebot import types, apihelper
config = configparser.ConfigParser()
config.read("settings.ini")
token = config["tgbot"]["token"]
get_id = config["tgbot"]["admin_id"]
admin_id = []
if "," in get_id:
get_id = get_id.split(",")
for a in get_id:
admin_id.append(int(a))
else:
try:
admin_id = [int(get_id)]
except ValueError:
admin_id =[0]
print("власний ID в телегі")
bot = telebot.TeleBot("token")
Токен бере з файла settings.ini