Skip to content

Commit b5814ec

Browse files
authored
Merge pull request eternnoir#2152 from Badiboy/master
Bugfix in ChatBoostSource parse
2 parents 61f41ff + 4b1422f commit b5814ec

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'coder2020official'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '4.15.3'
25+
release = '4.15.4'
2626

2727

2828
# -- General configuration ---------------------------------------------------

telebot/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9021,11 +9021,11 @@ def de_json(cls, json_string):
90219021
if json_string is None:
90229022
return None
90239023
obj = cls.check_json(json_string)
9024-
if obj["type"] == "premium":
9024+
if obj["source"] == "premium":
90259025
return ChatBoostSourcePremium.de_json(obj)
9026-
elif obj["type"] == "gift_code":
9026+
elif obj["source"] == "gift_code":
90279027
return ChatBoostSourceGiftCode.de_json(obj)
9028-
elif obj["type"] == "giveaway":
9028+
elif obj["source"] == "giveaway":
90299029
return ChatBoostSourceGiveaway.de_json(obj)
90309030
return None
90319031

telebot/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Versions should comply with PEP440.
22
# This line is parsed in setup.py:
3-
__version__ = '4.15.3'
3+
__version__ = '4.15.4'

0 commit comments

Comments
 (0)