Skip to content

Commit

Permalink
🔖 Pre Release 0.1.0b17
Browse files Browse the repository at this point in the history
  • Loading branch information
j1g5awi committed Mar 10, 2024
1 parent 76d371d commit befcfc6
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 130 deletions.
2 changes: 1 addition & 1 deletion nonebot/adapters/telegram/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async def send_to(
chat_id=chat_id,
message_thread_id=message_thread_id,
text=str(message),
entities=Entity.build_telegram_entities([message]),
entities=Entity.build_telegram_entities(Message(message)),
**kwargs,
)

Expand Down
2 changes: 1 addition & 1 deletion nonebot/adapters/telegram/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def from_telegram_entities(text, entities: List[Dict[str, Any]]) -> List["Entity
return nb_entites

@staticmethod
def build_telegram_entities(entities: List["Entity"]) -> List[MessageEntity]:
def build_telegram_entities(entities: "Message") -> List[MessageEntity]:
return (
(
[
Expand Down
Loading

0 comments on commit befcfc6

Please sign in to comment.