Skip to content

Commit

Permalink
Add blockquote to Null()
Browse files Browse the repository at this point in the history
Cuz lib can't be started because haven't this method
  • Loading branch information
KOT4N authored and RootShinobi committed Dec 31, 2023
1 parent 34e6857 commit 9e20948
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiogram_i18n/utils/text_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def spoiler(self, value: str) -> str:
def quote(self, value: str) -> str:
return value

def blockquote(self, value: str) -> str:
return value

def custom_emoji(self, value: str, custom_emoji_id: str) -> str:
return value

Expand Down

1 comment on commit 9e20948

@Robotvasya
Copy link

@Robotvasya Robotvasya commented on 9e20948 Dec 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this fix that error?

Traceback (most recent call last):
  File "/opt/videobot/sp_bot.py", line 11, in <module>
    from aiogram_i18n.cores import FluentRuntimeCore
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "/opt/videobot/venv/lib/python3.10/site-packages/aiogram_i18n/cores/__init__.py", line 29, in __getattr__
    return cast(BaseCore[Any], getattr(import_module(__cores__[name], "aiogram_i18n.cores"), name))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/opt/videobot/venv/lib/python3.10/site-packages/aiogram_i18n/cores/fluent_runtime_core.py", line 5, in <module>
    from aiogram_i18n.utils.text_decorator import td
  File "/opt/videobot/venv/lib/python3.10/site-packages/aiogram_i18n/utils/text_decorator.py", line 121, in <module>
    td = TextDecoration()
  File "/opt/videobot/venv/lib/python3.10/site-packages/aiogram_i18n/utils/text_decorator.py", line 52, in __init__
    None: Null(),
TypeError: Can't instantiate abstract class Null with abstract method blockquote

Please sign in to comment.