config.py 922 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- coding: utf-8 -*-
  2. # - logging - #
  3. LOGLEVEL: str = 'DEBUG'
  4. TIMEFMT: str = '%d.%m.%Y %H:%M:%S'
  5. LOGFMT: str = '%(asctime)s:%(name)s:%(levelname)s -> %(message)s'
  6. # - telegram - #
  7. API_ID: int = 1010101
  8. API_HASH: str = 'api hash'
  9. TOKEN: str = 'bot token'
  10. CHAT_ID: int = 10101010101
  11. '''default chat (also chat id can by specified locally for each channel)'''
  12. ATEMPTS: int = 2
  13. '''
  14. if number of attempts to get videos info will be bigger than `ATTEMPTS`, than
  15. you will be notified from bot
  16. '''
  17. # - invidous - #
  18. INSTANCE = None
  19. '''
  20. if None, than will be selected automatically
  21. or you can manually specify preferred instance:
  22. INSTANCE = 'https://invidiou.site'
  23. '''
  24. # - aiohttp - #
  25. USER_AGENT: str =\
  26. 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Gecko/20100101 Firefox/72.0'
  27. # - database - #
  28. DB_PATH = 'lives.sdb' # path to database
  29. # - channels - #
  30. CHANNELS_PATH = 'channels.json' # path to channels file