def update(self): for chat in self.messenger.chats: for bot in self.bots: if bot.chat_id == chat.id: bot.bot( "837420627:AAEIggxYfp4BdZHh1xmpbzDKBfEYNTBtS5U", chat, '/home/dimitris/Documents/Git/telegram-bot/user_list.json' )
import logging from configparser import ConfigParser from bot.bot import bot # Logging at the start to catch everything logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.WARNING, handlers=[logging.StreamHandler()]) LOGS = logging.getLogger(__name__) name = 'bot' # Read from config file config_file = f"{name}.ini" config = ConfigParser() config.read(config_file) # Extra details __version__ = '0.0.1' __author__ = 'pokurt' # Global Variables bot = bot(name)