Skip to content


Latest Version: v1.1.2

v1.1.2 - April 10, 2022

  • Added function to_webp (pystark.helpers.stickers.to_webp) to package helpers

v1.1.0 - April 10, 2022

  • Additions:
    • Added dark mode to documentation.
    • Added START_IN_GROUPS option to set message that will be replied when /start command is sent in groups.
    • Added LOG_CHAT environment variable to set a log chat id for logging error to Telegram.
    • Added Stark.log_tg method to log messages to Telegram LOG_CHAT
    • Added Stark.admins decorator to allow only admins to use a particular command. Read More
    • Added pystark.helpers package for some helpful functions.
    • Added localization option to have multi-language support for your bot.
    • Added helpers for sync and async command execution using subprocess in pystark.helpers.system
    • Added properties to class Stark:
    • Added properties to class Message:
    • Added methods to class Message:
    • Added a special keyword {commands} which will be automatically replaced with commands in HELP message.
    • Added announcement bar in documentation.
    • Added documentation for class Message, decorator Admins and also for all added things.
  • Improvements:
    • Improved methods in pystark.database.sql.Database.
    • Improved Documentation structure.
    • Documented and Improved react method of Message class.
    • Nested plugins (plugins in subdirectories) are now also loaded.
    • Auto add commands to help message if default set up is used or {commands} is in help message.
    • is now Stark().data, i.e, a property instead of a staticmethod. It will no longer take any arguments.
    • Stark.sudo_commands() is now Stark().sudo_commands, i.e, a property instead of a staticmethod.
    • Stark().langs lists all languages if localization is set up. It is a property so doesn't need to be called with round brackets ().
    • Better Plugins Loading.
    • pystark.database.sql.Database.tables_dict is now a public method.
    • Renamed commands ban, unban and banlist to botban, botunban and botbanlist respectively to prevent clashes with general group commands.
    • Removed pyromod as a dependency (temporarily till its features are added.)
  • Bugfixes:
    • Fixed local deploys for Windows.
    • Fix same command listed multiple times in['all_commands']
    • Fix sudo commands list, Stark().sudo_commands.
    • Message.react now returns the message just like it should
    • Fixed non-existent users' return value in pystark.database.sql.Database.get
    • Handle None value for settings.PLUGINS
    • Fixed pystark.database.sql.Database.tables_dict method.

v1.0.2 - April 7, 2022

  • Specify minimum python version which is 3.9, in docs and pypi.
  • More user-friendly boilerplate.

v1.0.1 - April 7, 2022

  • Fix broken CLI due to bad imports.
  • Add dev-requirement.txt for docs and pypi

v1.0.0 - April 6, 2022

  • Enhanced project settings, inspired from django.
  • Added brand new addons for additional features in bots.
  • Brand-new documentation using Mkdocs instead of Sphinx.
  • Database migration methods for pystark.database.sql.Database class like add_column, remove_column, etc.
  • Added other useful methods like
  • Improved boilerplate in favour of new features.
  • Added documentation for project settings using
  • Removed customization options from Stark.activate() as they can be configured using now.
  • Removed pystark.database.postgres in favour of pystark.database.sql.
  • Added sudo users support for bots which can be set using SUDO_USERS environment variable.
  • Allow username as OWNER_ID instead of only user_id
  • Pre-made models for users and bans table.
  • And much, much more!

v0.4.0 - March 15, 2022

  • BugFixes and improvements in SQL helper functions.
  • Make Database related dependencies optional and automated.
  • Class Database instead of functions
  • Rollback at exceptions
  • Raw SQL for getting all rows as it usually depends on python class instead of data in table
  • Raise TableNotFound if it doesn't exist instead of returning None
  • Rename pystark.databases.postgres to pystark.databased.sql in favour of other sql databases.
  • Allow other type of Database URls
  • Add attributes like session, base, engine to Database.

v0.3.0 - January 28, 2022

  • Additions
    • Use inline mode and callback buttons more easily.
    • Handle inline queries using Stark.inline().
    • Handle callback queries using Stark.callback().
    • Load plugins from multiple directories. Instead of passing a 'str' to 'activate()' function, pass a list.
    • Allow passing other keyword arguments while creating bot client.
    • Override the in-built/default plugins automatically as they are loaded later now.
  • PyStark CLI
    • Added optional argument ['-v', '--version'] to see currently installed version.
    • Removed optional argument ['-h', '--help'] as passing no argument does the same thing.
    • Made unnecessary arguments private.
  • Improvements
    • Improved PyPI Home page and Project Readme.
    • Improved Boilerplate.
    • Upgraded TelegramDB.
    • Separated constants.
    • Renamed default plugins file to remove confusion.
  • BugFixes
    • Fixed ModuleNotFoundError for psycopg2 (missing requirement).
  • Documentation
Back to top