Skip to content

Commit e28e1f2

Browse files
committed
Bugfix CoCDone callback on bot start
1 parent 5b1ec72 commit e28e1f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tg_bot/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def start(bot: Bot, update: Update, args: List[str]):
175175
# Deactivating mute
176176
bot.restrict_chat_member(
177177
DEFAULT_CHAT_ID,
178-
int(user.id),
178+
int(update.effective_message.from_user.id),
179179
can_send_messages=True,
180180
can_send_media_messages=True,
181181
can_send_other_messages=True,

0 commit comments

Comments
 (0)