Skip to content

Commit

Permalink
tiny update for bio for groups.
Browse files Browse the repository at this point in the history
  • Loading branch information
solovieff committed Aug 22, 2024
1 parent 7c18b43 commit 77433bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kibernikto/telegram/telegram_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def __init__(self, aiogram_chat: Chat, aiogram_user: User = None):
self.id = aiogram_chat.id
if self.is_personal and not aiogram_user:
raise ValueError("Failed to create kibernikto chat with private chat: no user info provided")

if not self.is_personal:
self.bio = aiogram_chat.description
self.aiogram_user = aiogram_user


Expand Down

0 comments on commit 77433bb

Please sign in to comment.