instancecontext module

Note

This module is imports as from .. import *. This means that there is no need to import it separately or use ezbotf.instancecontext.DirsContext. You can simply use ezbotf.InstanceContext as example.

Defines type-hinted contexts

DirContext

class ezbotf.instancecontext.DirsContext

Used for type-hint members of context

Variables:
  • plugins_dir – Directory with the plugins

  • cache_dir – Directory with the cache

  • logs_dir – Directory with the logs

  • lang_dir – Directory with the translations

  • permissions_dir – Directory with the permissions

InstanceContext

class ezbotf.instancecontext.InstanceContext

Used for type-hint members of context

Variables:
  • instance – Link to the current BotInstance

  • notifies – List with the notifies (str). It will send on any command from user and removed from list

  • owner – User object (from the telethon, telethon.types.User) of instance owner

  • dirs – Context with all directories (DirsContext)