mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
enh: allow zero parts in CallbackData
This commit is contained in:
parent
d6b93c25a5
commit
43d16e372a
1 changed files with 0 additions and 2 deletions
|
|
@ -33,8 +33,6 @@ class CallbackData:
|
|||
raise ValueError("Prefix can't be empty")
|
||||
if sep in prefix:
|
||||
raise ValueError(f"Separator {sep!r} can't be used in prefix")
|
||||
if not parts:
|
||||
raise TypeError('Parts were not passed!')
|
||||
|
||||
self.prefix = prefix
|
||||
self.sep = sep
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue