def add_new_attach(type, size, chat_id): add_value(Attachment(type=type, size=size, chat_id=chat_id)) commit_value()