From 0de74806763e53e6c7d6f215e60ced79e67212c9 Mon Sep 17 00:00:00 2001 From: Badiboy Date: Sat, 17 Feb 2024 15:43:20 +0300 Subject: [PATCH] Fix ChatBoostSourceGiveaway and bump version --- docs/source/conf.py | 2 +- pyproject.toml | 2 +- telebot/types.py | 2 +- telebot/version.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 540a0ccf2..dd00ce713 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -22,7 +22,7 @@ author = 'coder2020official' # The full version, including alpha/beta/rc tags -release = '4.15.5' +release = '4.16.0' # -- General configuration --------------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index 729592cff..7026a1345 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "pyTelegramBotAPI" -version = "4.15.5" +version = "4.16.0" description = "Python Telegram bot api." authors = [{name = "eternnoir", email = "eternnoir@gmail.com"}] license = {text = "GPL2"} diff --git a/telebot/types.py b/telebot/types.py index fe1285bc2..03516d4b9 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -9164,7 +9164,7 @@ def de_json(cls, json_string): if json_string is None: return None obj = cls.check_json(json_string) - obj['user'] = User.de_json(obj['user']) + obj['user'] = User.de_json(obj.get('user')) return cls(**obj) def __init__(self, source, giveaway_message_id, user=None, is_unclaimed=None, **kwargs): diff --git a/telebot/version.py b/telebot/version.py index 5edc33436..2e13bf898 100644 --- a/telebot/version.py +++ b/telebot/version.py @@ -1,3 +1,3 @@ # Versions should comply with PEP440. # This line is parsed in setup.py: -__version__ = '4.15.5' +__version__ = '4.16.0'